SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | List of all members
MathFunction Interface Reference

This interface should be implemented by classes which represent univariate mathematical functions. More...

Inheritance diagram for MathFunction:
[legend]

Public Member Functions

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

Detailed Description

This interface should be implemented by classes which represent univariate mathematical functions.

It is used to pass an arbitrary function of one variable as argument to another function. For example, it is used in umontreal.ssj.util.RootFinder to find the zeros of a function.

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

Implemented in BSpline, SmoothingCubicSpline, PowerMathFunction, Polynomial, SquareMathFunction, ShiftedMathFunction, PiecewiseConstantFunction, AverageMathFunction, SqrtMathFunction, and IdentityMathFunction.


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