Class AbstractStateCovarianceInterpolator
java.lang.Object
org.orekit.time.AbstractTimeInterpolator<TimeStampedPair<Orbit,StateCovariance>>
org.orekit.propagation.covariance.AbstractStateCovarianceInterpolator
- All Implemented Interfaces:
TimeInterpolator<TimeStampedPair<Orbit,StateCovariance>>
- Direct Known Subclasses:
StateCovarianceBlender,StateCovarianceKeplerianHermiteInterpolator
public abstract class AbstractStateCovarianceInterpolator
extends AbstractTimeInterpolator<TimeStampedPair<Orbit,StateCovariance>>
Abstract class for orbit and state covariance interpolator.
- Author:
- Vincent Cucchietti
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.orekit.time.AbstractTimeInterpolator
AbstractTimeInterpolator.InterpolationData -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault column dimension for position-velocity state covariance.static final PositionAngleTypeDefault position angle for covariance expressed in Cartesian elements.static final intDefault row dimension for position-velocity state covariance.Fields inherited from class org.orekit.time.AbstractTimeInterpolator
DEFAULT_EXTRAPOLATION_THRESHOLD_SEC, DEFAULT_INTERPOLATION_POINTS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractStateCovarianceInterpolator(int interpolationPoints, double extrapolationThreshold, TimeInterpolator<Orbit> orbitInterpolator, Frame outFrame, OrbitType outOrbitType, PositionAngleType outPositionAngleType) Constructor.protectedAbstractStateCovarianceInterpolator(int interpolationPoints, double extrapolationThreshold, TimeInterpolator<Orbit> orbitInterpolator, LOFType outLOF) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StateCovariancecomputeInterpolatedCovarianceInOrbitFrame(List<TimeStampedPair<Orbit, StateCovariance>> uncertainStates, Orbit interpolatedOrbit) Compute the interpolated covariance expressed in the interpolated orbit frame.protected TimeStampedPair<Orbit, StateCovariance> expressCovarianceInDesiredOutput(Orbit interpolatedOrbit, StateCovariance covarianceInOrbitFrame) Express covariance in output configuration defined at this instance construction.Get orbit interpolator.Get output frame.Get output local orbital frame.Get output orbit type.Get output position angle type.List<TimeInterpolator<? extends TimeStamped>> Get all lowest level interpolators implemented by this instance, otherwise return a list with this instance only.interpolate(AbstractTimeInterpolator<TimeStampedPair<Orbit, StateCovariance>>.InterpolationData interpolationData) Interpolate orbit and associated covariance.protected OrbitinterpolateOrbit(AbsoluteDate interpolationDate, List<TimeStampedPair<Orbit, StateCovariance>> neighborList) Interpolate orbit at given interpolation date.Methods inherited from class org.orekit.time.AbstractTimeInterpolator
addOptionalSubInterpolatorIfDefined, checkInterpolatorCompatibilityWithSampleSize, getCentralDate, getCentralDate, getExtrapolationThreshold, getInternalNbInterpolationPoints, getNbInterpolationPoints, getTimeParameter, interpolate, interpolate
-
Field Details
-
DEFAULT_POSITION_ANGLE
Default position angle for covariance expressed in Cartesian elements. -
COLUMN_DIM
public static final int COLUMN_DIMDefault column dimension for position-velocity state covariance.- See Also:
-
ROW_DIM
public static final int ROW_DIMDefault row dimension for position-velocity state covariance.- See Also:
-
-
Constructor Details
-
AbstractStateCovarianceInterpolator
protected AbstractStateCovarianceInterpolator(int interpolationPoints, double extrapolationThreshold, TimeInterpolator<Orbit> orbitInterpolator, LOFType outLOF) Constructor.- Parameters:
interpolationPoints- number of interpolation pointsextrapolationThreshold- extrapolation threshold beyond which the propagation will failorbitInterpolator- orbit interpolatoroutLOF- local orbital frame- See Also:
-
AbstractStateCovarianceInterpolator
protected AbstractStateCovarianceInterpolator(int interpolationPoints, double extrapolationThreshold, TimeInterpolator<Orbit> orbitInterpolator, Frame outFrame, OrbitType outOrbitType, PositionAngleType outPositionAngleType) Constructor.- Parameters:
interpolationPoints- number of interpolation pointsextrapolationThreshold- extrapolation threshold beyond which the propagation will failorbitInterpolator- orbit interpolatoroutFrame- desired output covariance frameoutOrbitType- desired output orbit typeoutPositionAngleType- desired output position angle- See Also:
-
-
Method Details
-
getSubInterpolators
Get all lowest level interpolators implemented by this instance, otherwise return a list with this instance only.An example would be the spacecraft state interpolator which can use different interpolators for each of its attributes (orbit, absolute position-velocity-acceleration coordinates, mass...). In this case, it would return the list of all of these interpolators (or possibly all of their sub-interpolators if they were to use multiple interpolators themselves).
- Specified by:
getSubInterpolatorsin interfaceTimeInterpolator<TimeStampedPair<Orbit,StateCovariance>> - Overrides:
getSubInterpolatorsin classAbstractTimeInterpolator<TimeStampedPair<Orbit,StateCovariance>> - Returns:
- list of interpolators
-
interpolate
public TimeStampedPair<Orbit,StateCovariance> interpolate(AbstractTimeInterpolator<TimeStampedPair<Orbit, StateCovariance>>.InterpolationData interpolationData) Interpolate orbit and associated covariance.- Specified by:
interpolatein classAbstractTimeInterpolator<TimeStampedPair<Orbit,StateCovariance>> - Parameters:
interpolationData- interpolation data- Returns:
- interpolated orbit and associated covariance
-
getOutFrame
Get output frame.- Returns:
- output frame. Can be null.
-
getOutLOF
Get output local orbital frame.- Returns:
- output local orbital frame. Can be null.
-
getOutOrbitType
Get output orbit type.- Returns:
- output orbit type.
-
getOutPositionAngleType
Get output position angle type.- Returns:
- output position angle.
-
getOrbitInterpolator
Get orbit interpolator.- Returns:
- orbit interpolator.
-
interpolateOrbit
protected Orbit interpolateOrbit(AbsoluteDate interpolationDate, List<TimeStampedPair<Orbit, StateCovariance>> neighborList) Interpolate orbit at given interpolation date.- Parameters:
interpolationDate- interpolation dateneighborList- neighbor list- Returns:
- interpolated orbit
-
computeInterpolatedCovarianceInOrbitFrame
protected abstract StateCovariance computeInterpolatedCovarianceInOrbitFrame(List<TimeStampedPair<Orbit, StateCovariance>> uncertainStates, Orbit interpolatedOrbit) Compute the interpolated covariance expressed in the interpolated orbit frame.- Parameters:
uncertainStates- list of orbits and associated covariancesinterpolatedOrbit- interpolated orbit- Returns:
- interpolated covariance expressed in the interpolated orbit frame
-
expressCovarianceInDesiredOutput
protected TimeStampedPair<Orbit,StateCovariance> expressCovarianceInDesiredOutput(Orbit interpolatedOrbit, StateCovariance covarianceInOrbitFrame) Express covariance in output configuration defined at this instance construction.- Parameters:
interpolatedOrbit- interpolated orbitcovarianceInOrbitFrame- covariance expressed in interpolated orbit frame- Returns:
- covariance in desired output configuration
-