mars_lib  0.1.0.3dc76ee85e09
Modular and Robust Sensor-Fusion
nearest_cov.h
Go to the documentation of this file.
1 // Copyright (C) 2021 Christian Brommer, Control of Networked Systems, University of Klagenfurt, Austria.
2 //
3 // All rights reserved.
4 //
5 // This software is licensed under the terms of the BSD-2-Clause-License with
6 // no commercial use allowed, the full terms of which are made available
7 // in the LICENSE file. No license in patents is granted.
8 //
9 // You can contact the author at <christian.brommer@ieee.org>
10 
11 #ifndef NEARESTCOV_H
12 #define NEARESTCOV_H
13 
14 #include <mars/ekf.h>
15 #include <Eigen/Dense>
16 
18 {
23 {
24  abs,
25  zero,
27  none
28 };
29 } // namespace NearestCovMethods
30 
31 namespace mars
32 {
41 {
42 public:
43  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
44 
45  Eigen::MatrixXd cov_mat_;
46  double delta_{ 0.005 };
47 
52  NearestCov(const Eigen::MatrixXd& covariance);
53 
60 
67 };
68 } // namespace mars
69 
70 #endif // NEARESTCOV_H
The NearestCov class generates a PSD Cov for a given pseudo-cov matrix.
Definition: nearest_cov.h:41
Eigen::MatrixXd EigenCorrectionUsingCorrelation(NearestCovMethod method)
EigenCorrectionUsingCorrelation.
NearestCov(const Eigen::MatrixXd &covariance)
NearestCov Constructor.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Eigen::MatrixXd cov_mat_
Input pseudo covariance.
Definition: nearest_cov.h:45
Eigen::MatrixXd EigenCorrectionUsingCovariance(NearestCovMethod method)
EigenCorrectionUsingCovariance.
double delta_
default correction for the delta method
Definition: nearest_cov.h:46
Definition: nearest_cov.h:18
NearestCovMethod
The NearestCovMethod enum defines the method to be used by the NearesCov algorythmus.
Definition: nearest_cov.h:23
@ zero
Correcting negative eigenvaules to zero.
Definition: nearest_cov.h:25
@ delta
Correcting negative eigenvaules to a defined delta.
Definition: nearest_cov.h:26
@ abs
Correcting negative eigenvaules to their absolut.
Definition: nearest_cov.h:24
@ none
No Correction, direct passtrough.
Definition: nearest_cov.h:27
Definition: buffer.h:27