Class SmoothStepFactory.QuadraticSmoothStepFunction

    • Method Detail

      • 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:
        UnivariateFunction.value(double)
      • 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:
        UnivariateFunction.value(double)