Class SmoothStepFactory.QuadraticSmoothStepFunction

All Implemented Interfaces:
Serializable, UnivariateDifferentiableFunction, FieldUnivariateFunction, UnivariateFunction
Enclosing class:
SmoothStepFactory

public static class SmoothStepFactory.QuadraticSmoothStepFunction extends SmoothStepFactory.SmoothStepFunction
Specific smoothstep function that cannot be built using the SmoothStepFactory.getGeneralOrder(int).

Methods inherited from PolynomialFunction should not be used as they will not be true to the actual function.

See Also:
  • Method Details

    • value

      public double value(double leftEdge, double rightEdge, double x) throws MathIllegalArgumentException
      Compute the value of the smoothstep function for the given edges and argument.

      Note that right edge is expected to be greater than left edge. It will throw an exception otherwise.

      Overrides:
      value in class SmoothStepFactory.SmoothStepFunction
      Parameters:
      leftEdge - left edge
      rightEdge - right edge
      x - Argument for which the function value should be computed
      Returns:
      the value of the polynomial at the given point
      Throws:
      MathIllegalArgumentException - if right edge is greater than left edge
      See Also:
    • value

      public double value(double xNormalized)
      Compute the value of the quadratic smoothstep for the given argument normalized between edges.
      Specified by:
      value in interface UnivariateFunction
      Overrides:
      value in class SmoothStepFactory.SmoothStepFunction
      Parameters:
      xNormalized - Normalized argument for which the function value should be computed. It is expected to be between [0:1] and will throw an exception otherwise.
      Returns:
      the value of the polynomial at the given point.
      See Also: