Class WeightDistanceUniform_F32

java.lang.Object
boofcv.alg.weights.WeightDistanceUniform_F32
All Implemented Interfaces:
WeightDistance_F32

public class WeightDistanceUniform_F32 extends 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 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 interface WeightDistance_F32
      Parameters:
      distance - Distance a sample is
      Returns:
      the weight