public class StateCovariance extends Object implements TimeStamped
Currently, the covariance only represents the orbital elements.
It is possible to change the covariance frame by using the
changeCovarianceFrame(Orbit, Frame)
or changeCovarianceFrame(Orbit, LOF)
method.
These methods are based on Equations (18) and (20) of Covariance Transformations for Satellite
Flight Dynamics Operations by David A. SVallado.
Finally, covariance orbit type can be changed using the
changeCovarianceType(Orbit, OrbitType, PositionAngleType)
method.
Modifier and Type | Field and Description |
---|---|
static int |
STATE_DIMENSION
State dimension.
|
Constructor and Description |
---|
StateCovariance(org.hipparchus.linear.RealMatrix orbitalCovariance,
AbsoluteDate epoch,
Frame covarianceFrame,
OrbitType orbitType,
PositionAngleType angleType)
Constructor.
|
StateCovariance(org.hipparchus.linear.RealMatrix orbitalCovariance,
AbsoluteDate epoch,
LOF lof)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
StateCovariance |
changeCovarianceFrame(Orbit orbit,
Frame frameOut)
Get the covariance in the output frame.
|
StateCovariance |
changeCovarianceFrame(Orbit orbit,
LOF lofOut)
Get the covariance in a given local orbital frame.
|
StateCovariance |
changeCovarianceType(Orbit orbit,
OrbitType outOrbitType,
PositionAngleType outAngleType)
Get the covariance matrix in another orbit type.
|
static void |
checkFrameAndOrbitTypeConsistency(Frame covarianceFrame,
OrbitType inputType)
Check constructor's inputs consistency.
|
AbsoluteDate |
getDate()
Get the date.
|
Frame |
getFrame()
Get the covariance frame.
|
LOF |
getLOF()
Get the covariance LOF type.
|
org.hipparchus.linear.RealMatrix |
getMatrix()
Get the covariance matrix.
|
OrbitType |
getOrbitType()
Get the covariance orbit type.
|
PositionAngleType |
getPositionAngleType()
Get the covariance angle type.
|
static org.hipparchus.linear.RealMatrix |
getStm(Orbit initialOrbit,
double dt)
Get the state transition matrix considering Keplerian contribution only.
|
StateCovariance |
shiftedBy(Orbit orbit,
double dt)
Get a time-shifted covariance matrix.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
durationFrom
public static final int STATE_DIMENSION
public StateCovariance(org.hipparchus.linear.RealMatrix orbitalCovariance, AbsoluteDate epoch, LOF lof)
orbitalCovariance
- 6x6 orbital parameters covarianceepoch
- epoch of the covariancelof
- covariance LOF typepublic StateCovariance(org.hipparchus.linear.RealMatrix orbitalCovariance, AbsoluteDate epoch, Frame covarianceFrame, OrbitType orbitType, PositionAngleType angleType)
orbitalCovariance
- 6x6 orbital parameters covarianceepoch
- epoch of the covariancecovarianceFrame
- covariance frame (inertial or Earth fixed)orbitType
- orbit type of the covariance (CARTESIAN if covarianceFrame is not pseudo-inertial)angleType
- position angle type of the covariance (not used if orbitType is CARTESIAN)public static void checkFrameAndOrbitTypeConsistency(Frame covarianceFrame, OrbitType inputType)
covarianceFrame
- covariance frame (inertial or Earth fixed)inputType
- orbit type of the covarianceOrekitException
- if input frame is not pseudo-inertial AND the orbit type is not Cartesianpublic AbsoluteDate getDate()
getDate
in interface TimeStamped
public org.hipparchus.linear.RealMatrix getMatrix()
public OrbitType getOrbitType()
public PositionAngleType getPositionAngleType()
public Frame getFrame()
getLOF()
public LOF getLOF()
getFrame()
public StateCovariance changeCovarianceType(Orbit orbit, OrbitType outOrbitType, PositionAngleType outAngleType)
The covariance orbit type cannot be changed if the covariance
matrix is expressed in a local orbital frame
or a
non-pseudo inertial frame.
As this type change uses the jacobian matrix of the transformation, it introduces a linear approximation. Hence, the current covariance matrix will not exactly match the new linearized case and the distribution will not follow a generalized Gaussian distribution anymore.
This is based on equation (1) to (6) from "Vallado, D. A. (2004). Covariance transformations for satellite flight dynamics operations."
orbit
- orbit to which the covariance matrix should correspondoutOrbitType
- target orbit type of the state covariance matrixoutAngleType
- target position angle type of the state covariance matrixchangeCovarianceFrame(Orbit, Frame)
public StateCovariance changeCovarianceFrame(Orbit orbit, LOF lofOut)
Changing the covariance frame is a linear process, this method does not introduce approximation unless a change in covariance orbit type is required.
This is based on equation (18) to (20) "from Vallado, D. A. (2004). Covariance transformations for satellite flight dynamics operations."
orbit
- orbit to which the covariance matrix should correspondlofOut
- output local orbital framepublic StateCovariance changeCovarianceFrame(Orbit orbit, Frame frameOut)
Changing the covariance frame is a linear process, this method does not introduce approximation unless a change in covariance orbit type is required.
This is based on equation (18) to (20) "from Vallado, D. A. (2004). Covariance transformations for satellite flight dynamics operations."
orbit
- orbit to which the covariance matrix should correspondframeOut
- output framepublic StateCovariance shiftedBy(Orbit orbit, double dt)
The shifting model is a linearized, Keplerian one. In other words, it is based on a state transition matrix that is computed assuming Keplerian motion.
Shifting is not intended as a replacement for proper covariance propagation, but should be sufficient for small time shifts or coarse accuracy.
orbit
- orbit to which the covariance matrix should corresponddt
- time shift in secondspublic static org.hipparchus.linear.RealMatrix getStm(Orbit initialOrbit, double dt)
initialOrbit
- orbit to which the initial covariance matrix should corresponddt
- time difference between the two orbitsCopyright © 2002-2023 CS GROUP. All rights reserved.