public class MatrixFieldFirstOrderDifferentiator extends Object implements Differentiator<DoubleArray,DoubleMatrix,DoubleMatrix[]>
| Constructor and Description |
|---|
MatrixFieldFirstOrderDifferentiator()
Creates an instance using the default value of eps (10-5).
|
MatrixFieldFirstOrderDifferentiator(double eps)
Creates an instance specifying the value of eps.
|
| Modifier and Type | Method and Description |
|---|---|
Function<DoubleArray,DoubleMatrix[]> |
differentiate(Function<DoubleArray,DoubleMatrix> function)
Provides a function that performs the differentiation.
|
Function<DoubleArray,DoubleMatrix[]> |
differentiate(Function<DoubleArray,DoubleMatrix> function,
Function<DoubleArray,Boolean> domain)
Provides a function that performs the differentiation.
|
public MatrixFieldFirstOrderDifferentiator()
public MatrixFieldFirstOrderDifferentiator(double eps)
eps - the step size used to approximate the derivativepublic Function<DoubleArray,DoubleMatrix[]> differentiate(Function<DoubleArray,DoubleMatrix> function)
Differentiatordifferentiate in interface Differentiator<DoubleArray,DoubleMatrix,DoubleMatrix[]>function - a function for which to get the differential functionpublic Function<DoubleArray,DoubleMatrix[]> differentiate(Function<DoubleArray,DoubleMatrix> function, Function<DoubleArray,Boolean> domain)
Differentiatordifferentiate in interface Differentiator<DoubleArray,DoubleMatrix,DoubleMatrix[]>function - a function for which to get the differential functiondomain - a function that returns false if the requested value is not in the domain, true otherwiseCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.