Class FieldTaylorMap<T extends CalculusFieldElement<T>>
java.lang.Object
org.hipparchus.analysis.differentiation.FieldTaylorMap<T>
- Type Parameters:
T
- the type of the function parameters and value
- All Implemented Interfaces:
DifferentialAlgebra
public class FieldTaylorMap<T extends CalculusFieldElement<T>>
extends Object
implements DifferentialAlgebra
Container for a Taylor map.
A Taylor map is a set of n DerivativeStructure
- Since:
- 2.2
-
Constructor Summary
ConstructorsConstructorDescriptionFieldTaylorMap
(Field<T> valueField, int parameters, int order, int nbFunctions) Constructor for identity map.FieldTaylorMap
(T[] point, FieldDerivativeStructure<T>[] functions) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptioncompose
(FieldTaylorMap<T> other) Compose the instance with another Taylor map as .int
Get the number of free parameters.getFunction
(int i) Get a function from the map.int
Get the number of functions of the map.int
getOrder()
Get the maximum derivation order.T[]
getPoint()
Get the point at which map is evaluated.invert
(FieldMatrixDecomposer<T> decomposer) Invert the instance.T[]
value
(double... deltaP) Evaluate Taylor expansion of the map at some offset.T[]
Evaluate Taylor expansion of the map at some offset.
-
Constructor Details
-
FieldTaylorMap
Simple constructor.The number of number of parameters and derivation orders of all functions must match.
- Parameters:
point
- point at which map is evaluatedfunctions
- functions composing the map (must contain at least one element)
-
FieldTaylorMap
Constructor for identity map.The identity is considered to be evaluated at origin.
- Parameters:
valueField
- field for the function parameters and valueparameters
- number of free parametersorder
- derivation ordernbFunctions
- number of functions
-
-
Method Details
-
getFreeParameters
public int getFreeParameters()Get the number of free parameters.- Specified by:
getFreeParameters
in interfaceDifferentialAlgebra
- Returns:
- number of free parameters
-
getOrder
public int getOrder()Get the maximum derivation order.- Specified by:
getOrder
in interfaceDifferentialAlgebra
- Returns:
- maximum derivation order
-
getNbFunctions
public int getNbFunctions()Get the number of functions of the map.- Returns:
- number of functions of the map
-
getPoint
Get the point at which map is evaluated.- Returns:
- point at which map is evaluated
-
getFunction
Get a function from the map.- Parameters:
i
- index of the function (must be between 0 included andgetNbFunctions()
excluded- Returns:
- function at index i
-
value
Evaluate Taylor expansion of the map at some offset.- Parameters:
deltaP
- parameters offsets- Returns:
- value of the Taylor expansion at
-
value
Evaluate Taylor expansion of the map at some offset.- Parameters:
deltaP
- parameters offsets- Returns:
- value of the Taylor expansion at
-
compose
Compose the instance with another Taylor map as .- Parameters:
other
- map with which instance must be composed- Returns:
- composed map
-
invert
Invert the instance.Consider
Taylor expansion
of the map with small parameters offsets which leads to evaluation offsets . The map inversion defines a Taylor map that computes from .The map must be square to be invertible (i.e. the number of functions and the number of parameters in the functions must match)
- Parameters:
decomposer
- matrix decomposer to user for inverting the linear part- Returns:
- inverted map
- See Also:
-