Package boofcv.alg.weights
Class WeightDistanceUniform_F32
java.lang.Object
boofcv.alg.weights.WeightDistanceUniform_F32
- All Implemented Interfaces:
WeightDistance_F32
A uniform distribution from 0 to maxDistance, inclusive. If value is greater than maxDistance it returns 0.
Does not check to see if the distance is less than zero.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
weight
(float distance) Returns the weight given a distance
-
Constructor Details
-
WeightDistanceUniform_F32
public WeightDistanceUniform_F32(float maxDistance)
-
-
Method Details
-
weight
public float weight(float distance) Description copied from interface:WeightDistance_F32
Returns the weight given a distance- Specified by:
weight
in interfaceWeightDistance_F32
- Parameters:
distance
- Distance a sample is- Returns:
- the weight
-