testWhiteNoiseFactor.cpp
Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2 
3  * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4  * Atlanta, Georgia 30332-0415
5  * All Rights Reserved
6  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7 
8  * See LICENSE for the license information
9 
10  * -------------------------------------------------------------------------- */
11 
18 #include <gtsam/base/Testable.h>
19 
21 
22 using namespace gtsam;
23 using namespace std;
24 
25 /* ************************************************************************* */
27 {
28  double z = 0.1;
29  Key meanKey=1, precisionKey=2;
30  WhiteNoiseFactor factor(z,meanKey, precisionKey);
31  LONGS_EQUAL(2, (long)factor.dim());
32 }
33 
34 /* ************************************************************************* */
35 int main() { TestResult tr; return TestRegistry::runAllTests(tr); }
36 /* ************************************************************************* */
TestRegistry::runAllTests
static int runAllTests(TestResult &result)
Definition: TestRegistry.cpp:27
Testable.h
Concept check for values that can be used in unit tests.
TestHarness.h
WhiteNoiseFactor.h
Binary white noise factor.
pruning_fixture::factor
DecisionTreeFactor factor(D &C &B &A, "0.0 0.0 0.0 0.60658897 0.61241912 0.61241969 0.61247685 0.61247742 0.0 " "0.0 0.0 0.99995287 1.0 1.0 1.0 1.0")
main
int main()
Definition: testWhiteNoiseFactor.cpp:35
pybind_wrapper_test_script.z
z
Definition: pybind_wrapper_test_script.py:61
TestResult
Definition: TestResult.h:26
gtsam::WhiteNoiseFactor
Binary factor to estimate parameters of zero-mean Gaussian white noise.
Definition: WhiteNoiseFactor.h:41
gtsam
traits
Definition: SFMdata.h:40
gtsam::TEST
TEST(SmartFactorBase, Pinhole)
Definition: testSmartFactorBase.cpp:38
constructor
Definition: init.h:200
std
Definition: BFloat16.h:88
gtsam::Key
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:97
LONGS_EQUAL
#define LONGS_EQUAL(expected, actual)
Definition: Test.h:134


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:17:41