Package boofcv.alg.weights
Interface WeightDistance_F32
- All Known Implementing Classes:
WeightDistanceSqGaussian_F32
,WeightDistanceUniform_F32
public interface WeightDistance_F32
Converts the distance a sample is into a weight.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
weight
(float distance) Returns the weight given a distance
-
Method Details
-
weight
float weight(float distance) Returns the weight given a distance- Parameters:
distance
- Distance a sample is- Returns:
- the weight
-