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 Modifier and Type Method Description static ParameterFunction
differentiate(ParameterFunction function, int nbPoints, double step)
Differentiate a scalar function using finite differences.static StateJacobian
differentiate(StateFunction function, int dimension, AttitudeProvider provider, OrbitType orbitType, PositionAngleType positionAngleType, double dP, int nbPoints)
Differentiate a vector function using finite differences.
-
-
-
Method Detail
-
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, PositionAngleType positionAngleType, double dP, int nbPoints)
Differentiate a vector function using finite differences.- Parameters:
function
- function to differentiatedimension
- dimension of the vector value of the functionprovider
- attitude provider to use for modified statesorbitType
- type used to map the orbit to a one dimensional arraypositionAngleType
- 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
-
-