Class FactoryWeights


  • public class FactoryWeights
    extends java.lang.Object
    Factory for creating sample weight functions of different types.
    • Constructor Summary

      Constructors 
      Constructor Description
      FactoryWeights()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WeightDistance_F32 distance​(WeightType type, float param, boolean safe)
      Creates a weight function for the provided distributions.
      static WeightPixel_F32 pixel​(WeightType type, boolean safe)
      Creates a weight function for the provided distributions.
      • Methods inherited from class java.lang.Object

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

      • FactoryWeights

        public FactoryWeights()
    • Method Detail

      • distance

        public static WeightDistance_F32 distance​(WeightType type,
                                                  float param,
                                                  boolean safe)
        Creates a weight function for the provided distributions.
        Parameters:
        type - Which type of distribution should be used
        param - Distribution parameters. For uniform this is the maximum distance. Guassian its the standard deviation.
        safe - If true it will then check the input distance to see if it matches.
        Returns:
        WeightDistance_F32
      • pixel

        public static WeightPixel_F32 pixel​(WeightType type,
                                            boolean safe)
        Creates a weight function for the provided distributions.
        Parameters:
        type - Which type of distribution should be used
        safe - If true it will then check the input distance to see if it matches.
        Returns:
        WeightDistance_F32