Package ffx.numerics.func1d
Interface UnivariateDiffFunction
- All Known Subinterfaces:
UnivariateSwitchingFunction
- All Known Implementing Classes:
BellCurveSwitch
,CompositeSwitch
,ConstantSwitch
,LinearDerivativeSwitch
,MultiplicativeSwitch
,PowerSwitch
,QuasiLinearThetaMap
,SquaredTrigSwitch
public interface UnivariateDiffFunction
A UnivariateDiffFunction describes a function of a single value (often lambda). Generally, it
should be at least twice differentiable.
- Author:
- Jacob M. Litman, Michael J. Schnieders
-
Method Summary
Modifier and TypeMethodDescriptiondouble
firstDerivative
(double x) First derivative at a point.double
nthDerivative
(double x, int order) N'th order derivative at a point.double
secondDerivative
(double x) Second derivative at a point.double
valueAt
(double x) Value at a point
-
Method Details
-
firstDerivative
First derivative at a point.- Parameters:
x
- a double.- Returns:
- f'(x)
- Throws:
IllegalArgumentException
- If f'(x) is undefined at x.
-
nthDerivative
N'th order derivative at a point. Should be relatively optional for any order above 2.- Parameters:
x
- a double.order
- Derivative order (>= 1)- Returns:
- d^nf(x)/dx^n
- Throws:
IllegalArgumentException
- If derivative undefined at x.
-
secondDerivative
Second derivative at a point.- Parameters:
x
- a double.- Returns:
- f''(x)
- Throws:
IllegalArgumentException
- If f''(x) is undefined at x.
-
valueAt
Value at a point- Parameters:
x
- a double.- Returns:
- f(x)
- Throws:
IllegalArgumentException
- If f(x) is undefined at x.
-