SSJ
3.3.1
Stochastic Simulation in Java
|
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 . More... | |
double [] | getX () |
Returns the \(X\) coordinates of the function. More... | |
double [] | getY () |
Returns the \(Y\) coordinates of the function. More... | |
double | evaluate (double x) |
Returns the value of the function evaluated at \(x\). More... | |
Represents a piecewise-constant function.
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. |
double evaluate | ( | double | x | ) |
Returns the value of the function evaluated at \(x\).
x | value at which the function is evaluated |
x
Implements MathFunction.
double [] getX | ( | ) |
Returns the \(X\) coordinates of the function.
double [] getY | ( | ) |
Returns the \(Y\) coordinates of the function.