KK
- type of the field elementspublic class FieldAbsolutePVCoordinatesHermiteInterpolator<KK extends org.hipparchus.CalculusFieldElement<KK>> extends AbstractFieldTimeInterpolator<FieldAbsolutePVCoordinates<KK>,KK>
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).
FieldHermiteInterpolator
,
FieldAbsolutePVCoordinates
AbstractFieldTimeInterpolator.InterpolationData
DEFAULT_EXTRAPOLATION_THRESHOLD_SEC, DEFAULT_INTERPOLATION_POINTS
Constructor and Description |
---|
FieldAbsolutePVCoordinatesHermiteInterpolator(Frame outputFrame)
Constructor with :
Default number of interpolation points of
DEFAULT_INTERPOLATION_POINTS
Default extrapolation threshold value (DEFAULT_EXTRAPOLATION_THRESHOLD_SEC s)
Use of position and two time derivatives during interpolation
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). |
FieldAbsolutePVCoordinatesHermiteInterpolator(int interpolationPoints,
double extrapolationThreshold,
Frame outputFrame,
CartesianDerivativesFilter filter)
Constructor.
|
FieldAbsolutePVCoordinatesHermiteInterpolator(int interpolationPoints,
Frame outputFrame)
Constructor with :
Default extrapolation threshold value (
DEFAULT_EXTRAPOLATION_THRESHOLD_SEC s)
Use of position and two time derivatives during interpolation
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). |
FieldAbsolutePVCoordinatesHermiteInterpolator(int interpolationPoints,
Frame outputFrame,
CartesianDerivativesFilter filter)
Constructor with default extrapolation threshold value (
DEFAULT_EXTRAPOLATION_THRESHOLD_SEC s). |
Modifier and Type | Method and Description |
---|---|
CartesianDerivativesFilter |
getFilter()
Get filter for derivatives from the sample to use in interpolation.
|
Frame |
getOutputFrame()
Get output frame for the interpolated instance.
|
protected FieldAbsolutePVCoordinates<KK> |
interpolate(AbstractFieldTimeInterpolator.InterpolationData interpolationData)
Interpolate instance from given interpolation data.
|
addOptionalSubInterpolatorIfDefined, checkInterpolatorCompatibilityWithSampleSize, getCentralDate, getExtrapolationThreshold, getNbInterpolationPoints, getSubInterpolators, getTimeParameter, interpolate, interpolate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
interpolate, interpolate
public FieldAbsolutePVCoordinatesHermiteInterpolator(Frame outputFrame)
DEFAULT_INTERPOLATION_POINTS
DEFAULT_EXTRAPOLATION_THRESHOLD_SEC
s)outputFrame
- frame for the interpolated instancepublic FieldAbsolutePVCoordinatesHermiteInterpolator(int interpolationPoints, Frame outputFrame)
DEFAULT_EXTRAPOLATION_THRESHOLD_SEC
s)interpolationPoints
- number of interpolation pointsoutputFrame
- frame for the interpolated instancepublic FieldAbsolutePVCoordinatesHermiteInterpolator(int interpolationPoints, Frame outputFrame, CartesianDerivativesFilter filter)
DEFAULT_EXTRAPOLATION_THRESHOLD_SEC
s).
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 pointsoutputFrame
- frame for the interpolated instancefilter
- filter for derivatives from the sample to use in interpolationpublic FieldAbsolutePVCoordinatesHermiteInterpolator(int interpolationPoints, double extrapolationThreshold, Frame outputFrame, CartesianDerivativesFilter filter)
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 failoutputFrame
- frame for the interpolated instancefilter
- filter for derivatives from the sample to use in interpolationpublic CartesianDerivativesFilter getFilter()
public Frame getOutputFrame()
protected FieldAbsolutePVCoordinates<KK> interpolate(AbstractFieldTimeInterpolator.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 AbstractFieldTimeInterpolator<FieldAbsolutePVCoordinates<KK extends org.hipparchus.CalculusFieldElement<KK>>,KK extends org.hipparchus.CalculusFieldElement<KK>>
interpolationData
- interpolation dataCopyright © 2002-2023 CS GROUP. All rights reserved.