SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | List of all members
PiecewiseConstantFunction Class Reference

Represents a piecewise-constant function. More...

Inheritance diagram for PiecewiseConstantFunction:
[legend]
Collaboration diagram for PiecewiseConstantFunction:
[legend]

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...
 

Detailed Description

Represents a piecewise-constant function.

Constructor & Destructor Documentation

◆ PiecewiseConstantFunction()

PiecewiseConstantFunction ( double []  x,
double []  y 
)

Constructs a new piecewise-constant function with \(X\) and \(Y\) coordinates given by x and y.

Parameters
xthe \(X\) coordinates.
ythe \(Y\) coordinates.

Member Function Documentation

◆ evaluate()

double evaluate ( double  x)

Returns the value of the function evaluated at \(x\).

Parameters
xvalue at which the function is evaluated
Returns
function evaluated at x

Implements MathFunction.

◆ getX()

double [] getX ( )

Returns the \(X\) coordinates of the function.

Returns
the \(X\) coordinates of the function.

◆ getY()

double [] getY ( )

Returns the \(Y\) coordinates of the function.

Returns
the \(Y\) coordinates of the function.

The documentation for this class was generated from the following file: