umontreal.iro.lecuyer.functions
Interface MathFunction
- All Known Subinterfaces:
- MathFunctionWithDerivative, MathFunctionWithFirstDerivative, MathFunctionWithIntegral
- All Known Implementing Classes:
- AverageMathFunction, BSpline, IdentityMathFunction, LeastSquares, PiecewiseConstantFunction, PolInterp, Polynomial, PowerMathFunction, ShiftedMathFunction, SmoothingCubicSpline, SqrtMathFunction, SquareMathFunction
public interface MathFunction
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 RootFinder
to find
the zeros of a function.
Method Summary |
double |
evaluate(double x)
Returns the value of the function evaluated at x. |
evaluate
double evaluate(double x)
- Returns the value of the function evaluated at x.
- Parameters:
x
- value at which the distribution function is evaluated
- Returns:
- function evaluated at x
jHepWork 3.1 ©