Skip to content

Commit

Permalink
Merge pull request Tudat#26 from tudat-team/feature/minor_estimation_…
Browse files Browse the repository at this point in the history
…fixex

Feature/minor estimation fixex
  • Loading branch information
DominicDirkx authored Nov 22, 2021
2 parents 2504f60 + 9b57b97 commit 45d337a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions include/tudat/astro/orbit_determination/podInputOutputTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,11 @@ struct PodOutput
exceptionDuringPropagation_( exceptionDuringPropagation)
{ }

Eigen::MatrixXd getNormalizedInverseCovarianceMatrix( )
{
return inverseNormalizedCovarianceMatrix_;
}

//! Function to retrieve the unnormalized inverse estimation covariance matrix
/*!
* Function to retrieve the unnormalized inverse estimation covariance matrix
Expand All @@ -485,7 +490,7 @@ struct PodOutput
Eigen::MatrixXd getUnnormalizedInverseCovarianceMatrix( )
{

Eigen::MatrixXd inverseUnnormalizedCovarianceMatrix = inverseNormalizedCovarianceMatrix_;
Eigen::MatrixXd inverseUnnormalizedCovarianceMatrix = getNormalizedInverseCovarianceMatrix( );

for( int i = 0; i < informationMatrixTransformationDiagonal_.rows( ); i++ )
{
Expand All @@ -499,14 +504,19 @@ struct PodOutput
return inverseUnnormalizedCovarianceMatrix;
}

Eigen::MatrixXd getNormalizedCovarianceMatrix( )
{
return inverseNormalizedCovarianceMatrix_.inverse( );
}

//! Function to retrieve the unnormalized estimation covariance matrix
/*!
* Function to retrieve the unnormalized estimation covariance matrix
* \return estimation covariance matrix
*/
Eigen::MatrixXd getUnnormalizedCovarianceMatrix( )
{
Eigen::MatrixXd unnormalizedCovarianceMatrix = inverseNormalizedCovarianceMatrix_.inverse( );
Eigen::MatrixXd unnormalizedCovarianceMatrix = getNormalizedCovarianceMatrix( );

for( int i = 0; i < informationMatrixTransformationDiagonal_.rows( ); i++ )
{
Expand Down

0 comments on commit 45d337a

Please sign in to comment.