SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.functions.PiecewiseConstantFunction Class Reference

Represents a piecewise-constant function. More...

Inheritance diagram for umontreal.ssj.functions.PiecewiseConstantFunction:
umontreal.ssj.functions.MathFunction

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

Detailed Description

Represents a piecewise-constant function.

Definition at line 34 of file PiecewiseConstantFunction.java.

Constructor & Destructor Documentation

◆ PiecewiseConstantFunction()

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.

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

Definition at line 45 of file PiecewiseConstantFunction.java.

Member Function Documentation

◆ evaluate()

double umontreal.ssj.functions.PiecewiseConstantFunction.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 umontreal.ssj.functions.MathFunction.

Definition at line 70 of file PiecewiseConstantFunction.java.

◆ getX()

double[] umontreal.ssj.functions.PiecewiseConstantFunction.getX ( )

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

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

Definition at line 57 of file PiecewiseConstantFunction.java.

◆ getY()

double[] umontreal.ssj.functions.PiecewiseConstantFunction.getY ( )

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

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

Definition at line 66 of file PiecewiseConstantFunction.java.


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