|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.analysis.differentiation.RiddersDifferentiator
public final class RiddersDifferentiator
Implements Ridders method of polynomial extrapolation for differentiation
of real univariate functions.
The algorithm implemented in this class comes from Numerical Recipes in Fortran 77 :
the art of scientific computing.
With respect to the 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 Summary | |
|---|---|
RiddersDifferentiator(double step)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 substantially| Method Detail |
|---|
public double differentiate(double x,
UnivariateFunction f)
UnivariateFunction on a single point using the Ridders method.
x - value for the computationf - function to be derivated
public UnivariateDifferentiableFunction differentiate(UnivariateFunction function)
differential from a regular function.
differentiate in interface UnivariateFunctionDifferentiatorfunction - function to differentiate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||