#include </home/runner/work/mars_lib/mars_lib/source/mars/include/mars/ekf.h>
|
| | Chi2 () |
| | Chi2 Default constructor.
|
| |
| | Chi2 (const int &dof, const double &chi_value) |
| | Chi2 Constructor.
|
| |
| void | set_dof (const int &value) |
| | set_dof Set degree of freedom for the X2 distribution
|
| |
| void | set_chi_value (const double &value) |
| | set_chi_value Set chi value for the calculation of the upper critical value
|
| |
| void | get_result (Eigen::MatrixXd *const last_res, double *const last_X2) const |
| | get_result Returns the last report values, i.e. last residual and X2 value
|
| |
| void | CalculateUcv () |
| | CalculateUcv Perform the calculation of the upper critical value.
|
| |
| void | ActivateTest (const bool &value) |
| | ActivateTest Enable or disable the X2 test.
|
| |
| bool | CalculateChi2 (const Eigen::MatrixXd &res, const Eigen::MatrixXd &S) |
| | CalculateChi2 Calculate the X2 value and compare it to the upper critical value (UCV)
|
| |
| void | PrintReport (const std::string &name) |
| | PrintReport Print a formated report e.g. if the test did not pass.
|
| |
|
| boost::math::chi_squared | dist_ |
| |
| int | dof_ { 3 } |
| | Chi2 distribution, generated based on the DoF.
|
| |
| double | chi_value_ { 0.05 } |
| | Degrees of freedom for the setup.
|
| |
| double | ucv_ |
| | Chi value for the confidence intervall (0.05 represents 95% test)
|
| |
| bool | do_test_ { true } |
| | Upper critival value.
|
| |
| bool | passed_ { false } |
| | Determine if the test is performed or not.
|
| |
|
| Eigen::MatrixXd | last_res_ |
| | Shows if the test passed or not (true=passed)
|
| |
| double | last_X2_ |
| | Last residual, for the report.
|
| |
◆ Chi2() [1/2]
Chi2 Default constructor.
◆ Chi2() [2/2]
| mars::Chi2::Chi2 |
( |
const int & |
dof, |
|
|
const double & |
chi_value |
|
) |
| |
Chi2 Constructor.
- Parameters
-
| dof | Degrees of freedom of the measurement |
| chi_value | Chi value to determine the confidence interval |
◆ set_dof()
| void mars::Chi2::set_dof |
( |
const int & |
value | ) |
|
set_dof Set degree of freedom for the X2 distribution
- Parameters
-
◆ set_chi_value()
| void mars::Chi2::set_chi_value |
( |
const double & |
value | ) |
|
set_chi_value Set chi value for the calculation of the upper critical value
- Parameters
-
◆ get_result()
| void mars::Chi2::get_result |
( |
Eigen::MatrixXd *const |
last_res, |
|
|
double *const |
last_X2 |
|
) |
| const |
get_result Returns the last report values, i.e. last residual and X2 value
- Parameters
-
| last_res | last residual |
| last_X2 | last X2 value |
◆ CalculateUcv()
| void mars::Chi2::CalculateUcv |
( |
| ) |
|
CalculateUcv Perform the calculation of the upper critical value.
◆ ActivateTest()
| void mars::Chi2::ActivateTest |
( |
const bool & |
value | ) |
|
ActivateTest Enable or disable the X2 test.
- Parameters
-
| value | True for enabeling, false for disabeling |
◆ CalculateChi2()
| bool mars::Chi2::CalculateChi2 |
( |
const Eigen::MatrixXd & |
res, |
|
|
const Eigen::MatrixXd & |
S |
|
) |
| |
CalculateChi2 Calculate the X2 value and compare it to the upper critical value (UCV)
- Parameters
-
| res | Residual |
| S | Innovation / Variance of the residual |
- Returns
- True if the test passed, false if it did not pass
◆ PrintReport()
| void mars::Chi2::PrintReport |
( |
const std::string & |
name | ) |
|
PrintReport Print a formated report e.g. if the test did not pass.
- Parameters
-
| name | Name of the sensor, used in the print |
◆ dist_
| boost::math::chi_squared mars::Chi2::dist_ |
◆ dof_
| int mars::Chi2::dof_ { 3 } |
Chi2 distribution, generated based on the DoF.
◆ chi_value_
| double mars::Chi2::chi_value_ { 0.05 } |
Degrees of freedom for the setup.
◆ ucv_
Chi value for the confidence intervall (0.05 represents 95% test)
◆ do_test_
| bool mars::Chi2::do_test_ { true } |
◆ passed_
| bool mars::Chi2::passed_ { false } |
Determine if the test is performed or not.
◆ last_res_
| Eigen::MatrixXd mars::Chi2::last_res_ |
|
private |
Shows if the test passed or not (true=passed)
◆ last_X2_
| double mars::Chi2::last_X2_ |
|
private |
Last residual, for the report.
The documentation for this class was generated from the following file: