| Modifier and Type | Field and Description |
|---|---|
| private final double[] | abscissa
Abscissae. |
| private final double[] | ordinate
Ordinates. |
| Access | Constructor and Description |
|---|---|
| public | StepFunction(double[]
Domain values where the function changes value. x, double[] Values of the function. y)Builds a step function from a list of arguments and the corresponding values. |
| Modifier and Type | Method and Description |
|---|---|
| public double | value(double
Point at which the function value should be computed. x)Implements org. Compute the value of the function. |
| abscissa | back to summary |
|---|---|
| private final double[] abscissa Abscissae. | |
| ordinate | back to summary |
|---|---|
| private final double[] ordinate Ordinates. | |
| StepFunction | back to summary |
|---|---|
| public StepFunction(double[] x, double[] y) throws NullArgumentException, NoDataException, DimensionMismatchException, NonMonotonicSequenceException Builds a step function from a list of arguments and the corresponding values. Specifically, returns the function h(x) defined by
The value of x[0] is ignored, but it must be strictly less than
x[1].
| |
| value | back to summary |
|---|---|
| public double value(double x) Implements org. Doc from org. Compute the value of the function.
| |