Class NeighbourhoodSizeFunctionFactory


  • public class NeighbourhoodSizeFunctionFactory
    extends java.lang.Object
    Factory for creating instances of NeighbourhoodSizeFunction.
    Since:
    3.3
    • Method Detail

      • quasiSigmoidDecay

        public static NeighbourhoodSizeFunction quasiSigmoidDecay​(double initValue,
                                                                  double slope,
                                                                  long numCall)
        Creates an sigmoid-like NeighbourhoodSizeFunction function. The function f will have the following properties:
        • f(0) = initValue
        • numCall is the inflexion point
        • slope = f'(numCall)
        Parameters:
        initValue - Initial value, i.e. value(0).
        slope - Value of the function derivative at numCall.
        numCall - Inflexion point.
        Returns:
        the neighbourhood size function.
        Throws:
        NotStrictlyPositiveException - if initValue <= 0.
        NumberIsTooLargeException - if slope >= 0.
        NotStrictlyPositiveException - if numCall <= 0.