Class CartesianCovarianceUtils


  • public class CartesianCovarianceUtils
    extends Object
    Utility class for conversions related to Cartesian covariance matrices.
    Since:
    12.2
    Author:
    Romain Serra
    • Method Detail

      • changeReferenceFrame

        public static RealMatrix changeReferenceFrame​(Frame inputFrame,
                                                      RealMatrix covarianceMatrix,
                                                      AbsoluteDate date,
                                                      Frame outputFrame)
        Convert input position-velocity covariance matrix between reference frames.
        Parameters:
        inputFrame - input frame
        outputFrame - output frame
        covarianceMatrix - position-velocity covariance matrix in reference frame
        date - epoch
        Returns:
        converted covariance matrix
      • convertToLofType

        public static RealMatrix convertToLofType​(Vector3D position,
                                                  Vector3D velocity,
                                                  RealMatrix covarianceMatrix,
                                                  LOFType lofType)
        Convert input position-velocity covariance matrix from reference frame to local one.
        Parameters:
        position - position vector in reference frame
        velocity - velocity vector in reference frame
        covarianceMatrix - position-velocity covariance matrix in reference frame
        lofType - output local orbital frame
        Returns:
        converted covariance matrix
      • convertFromLofType

        public static RealMatrix convertFromLofType​(LOFType lofType,
                                                    RealMatrix covarianceMatrix,
                                                    Vector3D position,
                                                    Vector3D velocity)
        Convert input position-velocity covariance matrix from local frame to reference one.
        Parameters:
        position - position vector in reference frame
        velocity - velocity vector in reference frame
        covarianceMatrix - position-velocity covariance matrix in local frame
        lofType - input local orbital frame
        Returns:
        converted covariance matrix