update paths
parent
e8817ae3ea
commit
a46a78d413
|
@ -26,9 +26,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <gtsam/nonlinear/GncHelpers.h>
|
|
||||||
#include <gtsam/nonlinear/GncParams.h>
|
#include <gtsam/nonlinear/GncParams.h>
|
||||||
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
|
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
|
||||||
|
#include <gtsam/nonlinear/internal/chiSquaredInverse.h>
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file GncHelpers.h
|
* @file chiSquaredInverse.h
|
||||||
* @brief Helper functions for use with the GncOptimizer
|
* @brief Helper functions for use with the GncOptimizer
|
||||||
* @author Varun Agrawal
|
* @author Varun Agrawal
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @file testGncHelpers.cpp
|
* @file testChiSquaredInverse.cpp
|
||||||
* @date July 10, 2023
|
* @date July 10, 2023
|
||||||
* @author Varun Agrawal
|
* @author Varun Agrawal
|
||||||
* @brief Tests for Chi-squared distribution.
|
* @brief Tests for Chi-squared distribution.
|
||||||
|
@ -18,12 +18,12 @@
|
||||||
|
|
||||||
#include <CppUnitLite/TestHarness.h>
|
#include <CppUnitLite/TestHarness.h>
|
||||||
#include <gtsam/base/Testable.h>
|
#include <gtsam/base/Testable.h>
|
||||||
#include <gtsam/nonlinear/GncHelpers.h>
|
#include <gtsam/nonlinear/internal/chiSquaredInverse.h>
|
||||||
|
|
||||||
using namespace gtsam;
|
using namespace gtsam;
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
TEST(GncHelpers, ChiSqInv) {
|
TEST(ChiSquaredInverse, ChiSqInv) {
|
||||||
double barcSq = chi_squared_quantile(2, 0.99);
|
double barcSq = chi_squared_quantile(2, 0.99);
|
||||||
EXPECT_DOUBLES_EQUAL(9.21034, barcSq, 1e-5);
|
EXPECT_DOUBLES_EQUAL(9.21034, barcSq, 1e-5);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue