Represents a piecewise-constant function. More...
Public Member Functions | |
| PiecewiseConstantFunction (double[] x, double[] y) | |
| Constructs a new piecewise-constant function with \(X\) and \(Y\) coordinates given by x and y. | |
| double[] | getX () |
| Returns the \(X\) coordinates of the function. | |
| double[] | getY () |
| Returns the \(Y\) coordinates of the function. | |
| double | evaluate (double x) |
| Returns the value of the function evaluated at \(x\). | |
Represents a piecewise-constant function.
Definition at line 34 of file PiecewiseConstantFunction.java.
| umontreal.ssj.functions.PiecewiseConstantFunction.PiecewiseConstantFunction | ( | double[] | x, |
| double[] | y ) |
Constructs a new piecewise-constant function with \(X\) and \(Y\) coordinates given by x and y.
| x | the \(X\) coordinates. |
| y | the \(Y\) coordinates. |
Definition at line 45 of file PiecewiseConstantFunction.java.
| double umontreal.ssj.functions.PiecewiseConstantFunction.evaluate | ( | double | x | ) |
Returns the value of the function evaluated at \(x\).
| x | value at which the function is evaluated |
Implements umontreal.ssj.functions.MathFunction.
Definition at line 70 of file PiecewiseConstantFunction.java.
| double[] umontreal.ssj.functions.PiecewiseConstantFunction.getX | ( | ) |
Returns the \(X\) coordinates of the function.
Definition at line 57 of file PiecewiseConstantFunction.java.
| double[] umontreal.ssj.functions.PiecewiseConstantFunction.getY | ( | ) |
Returns the \(Y\) coordinates of the function.
Definition at line 66 of file PiecewiseConstantFunction.java.