Package org.orekit.time.clocks
Class SampledClockModel
java.lang.Object
org.orekit.time.clocks.SampledClockModel
- All Implemented Interfaces:
ClockModel,BaseParameterDriversProvider<ParameterDriver,,ParameterObserver> ParameterDriversProvider
Offset clock model backed up by a sample.
- Since:
- 12.1
- Author:
- Luc Maisonobe
-
Constructor Summary
ConstructorsConstructorDescriptionSampledClockModel(List<ClockOffset> sample, int nbInterpolationPoints) Simple constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetCache()Get the clock offsets cache.getOffset(AbsoluteDate date) Get the clock offset at date.Get the drivers for parameters.Get validity end.Get validity start.<T extends CalculusFieldElement<T>>
SampledFieldClockModel<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
-
SampledClockModel
Simple constructor.- Parameters:
sample- clock offsets samplenbInterpolationPoints- number of points to use in interpolation
-
-
Method Details
-
getCache
Get the clock offsets cache.- Returns:
- clock offsets cache
-
getValidityStart
Get validity start.- Specified by:
getValidityStartin interfaceClockModel- Returns:
- model validity start
-
getValidityEnd
Get validity end.- Specified by:
getValidityEndin interfaceClockModel- Returns:
- model validity end
-
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>> SampledFieldClockModel<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
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
-
getParametersDrivers
Get the drivers for parameters.- Specified by:
getParametersDriversin interfaceBaseParameterDriversProvider<ParameterDriver,ParameterObserver> - Returns:
- drivers for parameters
-