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