public final class RiddersDifferentiator extends Object implements UnivariateFunctionDifferentiator
UnivariateDifferentiableFunction
implementation,
since this class uses a specific differentiation algorithm,
the returned DerivativeStructure
instances are constant
( they cannot provide derivatives other than the first order already computed when they are created).Constructor and Description |
---|
RiddersDifferentiator(double step)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
differentiate(double x,
UnivariateFunction f)
Differentiates a
UnivariateFunction on a single point using the Ridders method. |
UnivariateDifferentiableFunction |
differentiate(UnivariateFunction function)
Create an implementation of a
differential from a regular function . |
public RiddersDifferentiator(double step)
step
- estimated initial stepsize: it needs not be small, but rather should be an increment
in x over which the function changes substantiallypublic double differentiate(double x, UnivariateFunction f)
UnivariateFunction
on a single point using the Ridders method.x
- value for the computationf
- function to be derivatedpublic UnivariateDifferentiableFunction differentiate(UnivariateFunction function)
differential
from a regular function
.differentiate
in interface UnivariateFunctionDifferentiator
function
- function to differentiateCopyright © 2019 CNES. All rights reserved.