|
SSJ
3.3.1
Stochastic Simulation in Java
|
Represents a function computing \(f(x) - \delta\) for a user-defined function \(f(x)\) and shift \(\delta\). More...
Public Member Functions | |
| ShiftedMathFunction (MathFunction func, double delta) | |
Constructs a new function shifting the function func by a shift delta. More... | |
| MathFunction | getFunction () |
| Returns the function \(f(x)\). More... | |
| double | getDelta () |
Returns the shift \(\delta\) = delta. More... | |
| double | evaluate (double x) |
| Returns the value of the function evaluated at \(x\). More... | |
| double | derivative (double x) |
Computes (or estimates) the first derivative of the function at point x. More... | |
| double | derivative (double x, int n) |
Computes (or estimates) the \(n\)th derivative of the function at point x. More... | |
| double | integral (double a, double b) |
| Computes (or estimates) the integral of the function over the interval \([a, b]\). More... | |
Package Attributes | |
| MathFunction | func |
| double | delta |
Represents a function computing \(f(x) - \delta\) for a user-defined function \(f(x)\) and shift \(\delta\).
| ShiftedMathFunction | ( | MathFunction | func, |
| double | delta | ||
| ) |
Constructs a new function shifting the function func by a shift delta.
| func | the function. |
| delta | the shift. |
| double derivative | ( | double | x | ) |
Computes (or estimates) the first derivative of the function at point x.
| x | the point to evaluate the derivative to. |
Implements MathFunctionWithFirstDerivative.
| double derivative | ( | double | x, |
| int | n | ||
| ) |
Computes (or estimates) the \(n\)th derivative of the function at point x.
For \(n=0\), this returns the result of umontreal.ssj.functions.MathFunction.evaluate(double).
| x | the point to evaluate the derivate to. |
| n | the order of the derivative. |
| IllegalArgumentException | if n is negative or 0. |
Implements MathFunctionWithDerivative.
| double evaluate | ( | double | x | ) |
Returns the value of the function evaluated at \(x\).
| x | value at which the function is evaluated |
x Implements MathFunction.
| double getDelta | ( | ) |
Returns the shift \(\delta\) = delta.
| MathFunction getFunction | ( | ) |
Returns the function \(f(x)\).
| double integral | ( | double | a, |
| double | b | ||
| ) |
Computes (or estimates) the integral of the function over the interval \([a, b]\).
| a | the starting point of the interval. |
| b | the ending point of the interval. |
Implements MathFunctionWithIntegral.
1.8.14