Class StepFunction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double[] abscissa
      Abscissae.
      private double[] ordinate
      Ordinates.
    • Constructor Summary

      Constructors 
      Constructor Description
      StepFunction​(double[] x, double[] y)
      Builds a step function from a list of arguments and the corresponding values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double value​(double x)
      Compute the value of the function.
      • Methods inherited from class java.lang.Object

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

      • abscissa

        private final double[] abscissa
        Abscissae.
      • ordinate

        private final double[] ordinate
        Ordinates.
    • Method Detail

      • value

        public double value​(double x)
        Compute the value of the function.
        Specified by:
        value in interface UnivariateFunction
        Parameters:
        x - Point at which the function value should be computed.
        Returns:
        the value of the function.