public class FactoryWeights
extends java.lang.Object
| Constructor and Description |
|---|
FactoryWeights() |
| Modifier and Type | Method and Description |
|---|---|
static WeightDistance_F32 |
distance(WeightType type,
float param,
boolean safe)
Creates a weight function for the provided distributions.
|
static WeightPixel_F32 |
pixel(WeightType type,
boolean safe)
Creates a weight function for the provided distributions.
|
public static WeightDistance_F32 distance(WeightType type, float param, boolean safe)
type - Which type of distribution should be usedparam - Distribution parameters. For uniform this is the maximum distance.
Guassian its the standard deviation.safe - If true it will then check the input distance to see if it matches.public static WeightPixel_F32 pixel(WeightType type, boolean safe)
type - Which type of distribution should be usedsafe - If true it will then check the input distance to see if it matches.