public class InterpolatingTransformProvider extends Object implements TransformProvider
The interpolation is a polynomial Hermite interpolation, which can either use or ignore the derivatives provided by the raw provider. This means that simple raw providers that do not compute derivatives can be used, the derivatives will be added appropriately by the interpolation process.
GenericTimeStampedCache
,
ShiftingTransformProvider
,
Serialized FormConstructor and Description |
---|
InterpolatingTransformProvider(TransformProvider rawProvider,
CartesianDerivativesFilter cFilter,
AngularDerivativesFilter aFilter,
int gridPoints,
double step,
int maxSlots,
double maxSpan,
double newSlotInterval)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getGridPoints()
Get the number of interpolation grid points.
|
TransformProvider |
getRawProvider()
Get the underlying provider for raw (non-interpolated) transforms.
|
double |
getStep()
Get the grid points time step.
|
Transform |
getTransform(AbsoluteDate date)
Get the
Transform corresponding to specified date. |
<T extends CalculusFieldElement<T>> |
getTransform(FieldAbsoluteDate<T> date)
Get the
FieldTransform corresponding to specified date. |
public InterpolatingTransformProvider(TransformProvider rawProvider, CartesianDerivativesFilter cFilter, AngularDerivativesFilter aFilter, int gridPoints, double step, int maxSlots, double maxSpan, double newSlotInterval)
rawProvider
- provider for raw (non-interpolated) transformscFilter
- filter for derivatives from the sample to use in interpolationaFilter
- filter for derivatives from the sample to use in interpolationgridPoints
- number of interpolation grid pointsstep
- grid points time stepmaxSlots
- maximum number of independent cached time slots
in the time-stamped cache
maxSpan
- maximum duration span in seconds of one slot
in the time-stamped cache
newSlotInterval
- time interval above which a new slot is created
in the time-stamped cache
public TransformProvider getRawProvider()
public int getGridPoints()
public double getStep()
public Transform getTransform(AbsoluteDate date)
Transform
corresponding to specified date.getTransform
in interface TransformProvider
date
- current datepublic <T extends CalculusFieldElement<T>> FieldTransform<T> getTransform(FieldAbsoluteDate<T> date)
FieldTransform
corresponding to specified date.getTransform
in interface TransformProvider
T
- type of the field elementsdate
- current dateCopyright © 2002-2021 CS GROUP. All rights reserved.