public class PiecewiseConstantFunction extends java.lang.Object implements MathFunction
| Constructor and Description |
|---|
PiecewiseConstantFunction(double[] x,
double[] y)
Constructs a new piecewise-constant function
with X and Y coordinates given
by x and y.
|
public PiecewiseConstantFunction(double[] x,
double[] y)
x - the X coordinates.y - the Y coordinates.public double[] getX()
public double[] getY()
public double evaluate(double x)
MathFunctionevaluate in interface MathFunctionx - value at which the distribution function is evaluatedTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.