Documentation of 'boofcv.alg.weights.WeightDistanceUniform_F32' Java class
WeightDistanceUniform_F32
boofcv.alg.weights

Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      float weight(float distance)
      Returns the weight given a distance
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WeightDistanceUniform_F32

        public WeightDistanceUniform_F32(float maxDistance)
    • Method Detail

      • 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

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.