Package boofcv.alg.weights
Class WeightDistanceSqGaussian_F32
java.lang.Object
boofcv.alg.weights.WeightDistanceSqGaussian_F32
- All Implemented Interfaces:
WeightDistance_F32
The distribution is a cropped Gaussian distribution with mean at 0. Note
that this matches the shape of the distribution but is not correctly normalized. Input is assumed to be
the distance squared. Does not check to see if distance is less than zero
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
weight
(float distanceSq) Returns the weight given a distance
-
Constructor Details
-
WeightDistanceSqGaussian_F32
public WeightDistanceSqGaussian_F32(float sigma)
-
-
Method Details
-
weight
public float weight(float distanceSq) Description copied from interface:WeightDistance_F32
Returns the weight given a distance- Specified by:
weight
in interfaceWeightDistance_F32
- Parameters:
distanceSq
- Distance a sample is- Returns:
- the weight
-