java.lang.Object
org.apache.commons.math3.analysis.function.Logistic
All Implemented Interfaces:
DifferentiableUnivariateFunction, UnivariateDifferentiableFunction, UnivariateFunction

Since:
3.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Parametric function where the input array contains the parameters of the logistic function, ordered as follows: k m b q a n
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double
    Lower asymptote.
    private final double
    Growth rate.
    private final double
    Upper asymptote.
    private final double
    Abscissa of maximum growth.
    private final double
    Parameter that affects near which asymptote maximum growth occurs.
    private final double
    Parameter that affects the position of the curve along the ordinate axis.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Logistic(double k, double m, double b, double q, double a, double n)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    as of 3.1, replaced by value(DerivativeStructure)
    double
    value(double x)
    Compute the value of the function.
    private static double
    value(double mMinusX, double k, double b, double q, double a, double oneOverN)
     
    Simple mathematical function.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • a

      private final double a
      Lower asymptote.
    • k

      private final double k
      Upper asymptote.
    • b

      private final double b
      Growth rate.
    • oneOverN

      private final double oneOverN
      Parameter that affects near which asymptote maximum growth occurs.
    • q

      private final double q
      Parameter that affects the position of the curve along the ordinate axis.
    • m

      private final double m
      Abscissa of maximum growth.
  • Constructor Details

    • Logistic

      public Logistic(double k, double m, double b, double q, double a, double n) throws NotStrictlyPositiveException
      Parameters:
      k - If b > 0, value of the function for x going towards +∞. If b < 0, value of the function for x going towards -∞.
      m - Abscissa of maximum growth.
      b - Growth rate.
      q - Parameter that affects the position of the curve along the ordinate axis.
      a - If b > 0, value of the function for x going towards -∞. If b < 0, value of the function for x going towards +∞.
      n - Parameter that affects near which asymptote the maximum growth occurs.
      Throws:
      NotStrictlyPositiveException - if n <= 0.
  • Method Details