Class StepFunction

java.lang.Object
org.apache.commons.math4.analysis.function.StepFunction
All Implemented Interfaces:
UnivariateFunction

public class StepFunction
extends java.lang.Object
implements UnivariateFunction
Since:
3.0
  • 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

    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