|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.functions.PiecewiseConstantFunction
public class PiecewiseConstantFunction
Represents a piecewise-constant function.
Constructor Summary | |
---|---|
PiecewiseConstantFunction(double[] x,
double[] y)
Constructs a new piecewise-constant function with X and Y coordinates given by x and y. |
Method Summary | |
---|---|
double |
evaluate(double x)
Returns the value of the function evaluated at x. |
double[] |
getX()
Returns the X coordinates of the function. |
double[] |
getY()
Returns the Y coordinates of the function. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PiecewiseConstantFunction(double[] x, double[] y)
x
- the X coordinates.y
- the Y coordinates.Method Detail |
---|
public double[] getX()
public double[] getY()
public double evaluate(double x)
MathFunction
evaluate
in interface MathFunction
x
- value at which the function is evaluated
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |