Class SigmoidFunction

    • Constructor Detail

      • SigmoidFunction

        public SigmoidFunction​(java.lang.String name)
        initialise the sigmoid function y = 1.0/(1.0*exp(-slope*(x-location)))) parameter order: parameter[0] = location (default: 0.0) parameter[1] = slope (default: 1.0) parameter[2] = scaling (default: 1.0 (fixed))
        Parameters:
        name - function name
      • SigmoidFunction

        public SigmoidFunction​(java.lang.String name,
                               double[] parameter)
        initialise the sigmoid function y = 1.0/(1.0*exp(-slope*(x-location)))) parameter order: parameter[0] = location (default: 0.0) parameter[1] = slope (default: 1.0) parameter[2] = scaling (default: 1.0 (fixed))
        Parameters:
        name - function name
        parameter - function parameter
    • Method Detail

      • getValue

        public double getValue​(double x)
        Specified by:
        getValue in interface Function1D