public class SP3CoordinateHermiteInterpolator extends AbstractTimeInterpolator<SP3Coordinate>
SP3 coordinates
.
As this implementation of interpolation is polynomial, it should be used only with small number of interpolation points (about 10-20 points) in order to avoid Runge's phenomenon and numerical problems (including NaN appearing).
HermiteInterpolator
,
SP3Coordinate
AbstractTimeInterpolator.InterpolationData
DEFAULT_EXTRAPOLATION_THRESHOLD_SEC, DEFAULT_INTERPOLATION_POINTS
Constructor and Description |
---|
SP3CoordinateHermiteInterpolator(int interpolationPoints,
double extrapolationThreshold,
boolean useRates)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected SP3Coordinate |
interpolate(AbstractTimeInterpolator.InterpolationData interpolationData)
Interpolate instance from given interpolation data.
|
addOptionalSubInterpolatorIfDefined, checkInterpolatorCompatibilityWithSampleSize, getExtrapolationThreshold, getNbInterpolationPoints, getSubInterpolators, getTimeParameter, interpolate, interpolate
public SP3CoordinateHermiteInterpolator(int interpolationPoints, double extrapolationThreshold, boolean useRates)
As this implementation of interpolation is polynomial, it should be used only with small number of interpolation points (about 10-20 points) in order to avoid Runge's phenomenon and numerical problems (including NaN appearing).
interpolationPoints
- number of interpolation pointsextrapolationThreshold
- extrapolation threshold beyond which the propagation will failuseRates
- if true, use velocity and clock rates for interpolationprotected SP3Coordinate interpolate(AbstractTimeInterpolator.InterpolationData interpolationData)
The interpolated instance is created by polynomial Hermite interpolation ensuring velocity remains the exact derivative of position.
Note that even if first time derivatives (velocities) from sample can be ignored, the interpolated instance always includes interpolated derivatives. This feature can be used explicitly to compute these derivatives when it would be too complex to compute them from an analytical formula: just compute a few sample points from the explicit formula and set the derivatives to zero in these sample points, then use interpolation to add derivatives consistent with the positions.
interpolate
in class AbstractTimeInterpolator<SP3Coordinate>
interpolationData
- interpolation dataCopyright © 2002-2023 CS GROUP. All rights reserved.