T
- the type of the function parameters and valuepublic class FieldTaylorMap<T extends CalculusFieldElement<T>> extends Object
A Taylor map is a set of n DerivativeStructure
(f1,f2,…,fn) depending on m parameters (p1,p2,…,pm),
with positive n and m.
Constructor and Description |
---|
FieldTaylorMap(Field<T> valueField,
int parameters,
int order,
int nbFunctions)
Constructor for identity map.
|
FieldTaylorMap(T[] point,
FieldDerivativeStructure<T>[] functions)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
FieldTaylorMap<T> |
compose(FieldTaylorMap<T> other)
Compose the instance with another Taylor map as this∘other.
|
FieldDerivativeStructure<T> |
getFunction(int i)
Get a function from the map.
|
int |
getNbFunctions()
Get the number of functions of the map.
|
int |
getNbParameters()
Get the number of parameters of the map.
|
T[] |
getPoint()
Get the point at which map is evaluated.
|
FieldTaylorMap<T> |
invert(FieldMatrixDecomposer<T> decomposer)
Invert the instance.
|
T[] |
value(double... deltaP)
Evaluate Taylor expansion of the map at some offset.
|
T[] |
value(T... deltaP)
Evaluate Taylor expansion of the map at some offset.
|
public FieldTaylorMap(T[] point, FieldDerivativeStructure<T>[] functions)
The number of number of parameters and derivation orders of all functions must match.
point
- point at which map is evaluatedfunctions
- functions composing the map (must contain at least one element)public FieldTaylorMap(Field<T> valueField, int parameters, int order, int nbFunctions)
The identity is considered to be evaluated at origin.
valueField
- field for the function parameters and valueparameters
- number of free parametersorder
- derivation ordernbFunctions
- number of functionspublic int getNbParameters()
public int getNbFunctions()
public T[] getPoint()
public FieldDerivativeStructure<T> getFunction(int i)
i
- index of the function (must be between 0 included and getNbFunctions()
excludedpublic T[] value(double... deltaP)
deltaP
- parameters offsets (Δp1,Δp2,…,Δpn)public T[] value(T... deltaP)
deltaP
- parameters offsets (Δp1,Δp2,…,Δpn)public FieldTaylorMap<T> compose(FieldTaylorMap<T> other)
other
- map with which instance must be composedpublic FieldTaylorMap<T> invert(FieldMatrixDecomposer<T> decomposer)
Consider Taylor expansion
of the map with
small parameters offsets (Δp1,Δp2,…,Δpn)
which leads to evaluation offsets (f1+df1,f2+df2,…,fn+dfn).
The map inversion defines a Taylor map that computes (Δp1,Δp2,…,Δpn) from (df1,df2,…,dfn).
The map must be square to be invertible (i.e. the number of functions and the number of parameters in the functions must match)
decomposer
- matrix decomposer to user for inverting the linear partCopyright © 2016-2022 CS GROUP. All rights reserved.