Package org.orekit.time.clocks
Class PolynomialClockModel
java.lang.Object
org.orekit.time.clocks.PolynomialClockModel
- All Implemented Interfaces:
ClockModel,BaseParameterDriversProvider<ParameterDriver,,ParameterObserver> ParameterDriversProvider
Polynomial clock model.
- Since:
- 12.1
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionPolynomialClockModel(List<ParameterDriver> terms) Simple constructor.PolynomialClockModel(AbsoluteDate referenceDate, String prefix) Simple constructor.PolynomialClockModel(AbsoluteDate referenceDate, String prefix, double... terms) Simple constructor.PolynomialClockModel(ParameterDriver... terms) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameterDriver(int index, ParameterDriver driver) Add a parameter driver term in a given index to the list of parameters.getOffset(AbsoluteDate date) Get the clock offset at date.Get the drivers for parameters.Get validity end.Get validity start.<T extends CalculusFieldElement<T>>
PolynomialFieldClockModel<T> toField(DoubleFunction<T> converter) Convert to field model.toGradient(int freeParameters, Map<String, Integer> indices) Convert to gradient model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.utils.drivers.BaseParameterDriversProvider
getParameterDriver, getParameterDriverWithSubstring, isSupportedMethods inherited from interface org.orekit.time.clocks.ClockModel
getAccelerationDriver, getAcceptedTermSuffix, getBiasDriver, getOffsetValue, getParameterDriverTerm, getRateDriverMethods inherited from interface org.orekit.utils.drivers.ParameterDriversProvider
getParameters, getParameters
-
Constructor Details
-
PolynomialClockModel
Simple constructor.- Parameters:
referenceDate- reference date (may be null)prefix- prefix for the parameter names
-
PolynomialClockModel
Simple constructor.- Parameters:
referenceDate- reference date (may be null if there is only one term)prefix- prefix for the parameter namesterms- the polynomial terms in order.
-
PolynomialClockModel
Simple constructor.The reference date for computing the polynom is the reference date of the first parameter driver.
- Parameters:
terms- the parameter driver terms (they must have names that end with theaccepted suffixes)
-
PolynomialClockModel
Simple constructor.- Parameters:
terms- the parameter driver terms
-
-
Method Details
-
getValidityStart
Get validity start.Validity is extracted from the first parameter driver.
- Specified by:
getValidityStartin interfaceClockModel- Returns:
- model validity start
-
getValidityEnd
Get validity end.Validity is extracted from the first parameter driver.
- Specified by:
getValidityEndin interfaceClockModel- Returns:
- model validity end
-
getParametersDrivers
Get the drivers for parameters.- Specified by:
getParametersDriversin interfaceBaseParameterDriversProvider<ParameterDriver,ParameterObserver> - Returns:
- drivers for parameters
-
addParameterDriver
Add a parameter driver term in a given index to the list of parameters. If parameters prior to the one requested don't exist, it will create empty ones. This allows adding a velocity, acceleration, or above without explicitly defining the terms below.- Parameters:
index- the index at which to add the parameter driverdriver- the parameter driver to add
-
getOffset
Get the clock offset at date.- Specified by:
getOffsetin interfaceClockModel- Parameters:
date- date at which offset is requested- Returns:
- clock offset at specified date
-
toField
public <T extends CalculusFieldElement<T>> PolynomialFieldClockModel<T> toField(DoubleFunction<T> converter) Convert to field model.- Specified by:
toFieldin interfaceClockModel- Type Parameters:
T- type of the field elements- Parameters:
converter- converter to field elements- Returns:
- field version of the instance
-
toGradient
public PolynomialFieldClockModel<Gradient> toGradient(int freeParameters, Map<String, Integer> indices) Convert to gradient model.- Specified by:
toGradientin interfaceClockModel- Parameters:
freeParameters- total number of free parameters in the gradientindices- indices of the differentiation parameters in derivatives computations, must be span name and not driver name- Returns:
- converted clock model
-