boofcv.alg.weights
Class WeightDistanceSqGaussian_F32
- java.lang.Object
-
- boofcv.alg.weights.WeightDistanceSqGaussian_F32
-
- All Implemented Interfaces:
- WeightDistance_F32
public class WeightDistanceSqGaussian_F32 extends java.lang.Object implements 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
Constructors Constructor and Description WeightDistanceSqGaussian_F32(float sigma)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatweight(float distanceSq)Returns the weight given a distance
-
-
-
Method Detail
-
weight
public float weight(float distanceSq)
Description copied from interface:WeightDistance_F32Returns the weight given a distance- Specified by:
weightin interfaceWeightDistance_F32- Parameters:
distanceSq- Distance a sample is- Returns:
- the weight
-
-
DataMelt 3.0 © DataMelt by jWork.ORG