Package org.orekit.utils
Class Differentiation
- java.lang.Object
-
- org.orekit.utils.Differentiation
-
public class Differentiation extends Object
Utility class for differentiating various kinds of functions.- Since:
- 8.0
- Author:
- Luc Maisonobe
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ParameterFunction
differentiate(ParameterFunction function, int nbPoints, double step)
Differentiate a scalar function using finite differences.static ParameterFunction
differentiate(ParameterFunction function, ParameterDriver driver, int nbPoints, double normalizedStep)
Deprecated.as of 9.3, replaced bydifferentiate(ParameterFunction, int, double)
static StateJacobian
differentiate(StateFunction function, int dimension, AttitudeProvider provider, OrbitType orbitType, PositionAngle positionAngle, double dP, int nbPoints)
Differentiate a vector function using finite differences.
-
-
-
Method Detail
-
differentiate
@Deprecated public static ParameterFunction differentiate(ParameterFunction function, ParameterDriver driver, int nbPoints, double normalizedStep)
Deprecated.as of 9.3, replaced bydifferentiate(ParameterFunction, int, double)
Differentiate a scalar function using finite differences.- Parameters:
function
- function to differentiatedriver
- driver for the parameternbPoints
- number of points used for finite differencesnormalizedStep
- step for finite differences, in normalized units- Returns:
- scalar function evaluating to the derivative of the original function
-
differentiate
public static ParameterFunction differentiate(ParameterFunction function, int nbPoints, double step)
Differentiate a scalar function using finite differences.- Parameters:
function
- function to differentiatenbPoints
- number of points used for finite differencesstep
- step for finite differences, in physical units- Returns:
- scalar function evaluating to the derivative of the original function
- Since:
- 9.3
-
differentiate
public static StateJacobian differentiate(StateFunction function, int dimension, AttitudeProvider provider, OrbitType orbitType, PositionAngle positionAngle, double dP, int nbPoints)
Differentiate a vector function using finite differences.- Parameters:
function
- function to differentiateprovider
- attitude provider to use for modified statesdimension
- dimension of the vector value of the functionorbitType
- type used to map the orbit to a one dimensional arraypositionAngle
- type of the position angle used for orbit mapping to arraydP
- user specified position error, used for step size computation for finite differencesnbPoints
- number of points used for finite differences- Returns:
- matrix function evaluating to the Jacobian of the original function
-
-