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 #include <boost/assign/std/list.hpp> // for operator +=
22 using namespace boost::assign;
23 
24 using namespace gtsam;
25 using namespace std;
26 
27 /* ************************************************************************* */
29 {
30  double z = 0.1;
31  Key meanKey=1, precisionKey=2;
32  WhiteNoiseFactor factor(z,meanKey, precisionKey);
33  LONGS_EQUAL(2, (long)factor.dim());
34 }
35 
36 /* ************************************************************************* */
37 int main() { TestResult tr; return TestRegistry::runAllTests(tr); }
38 /* ************************************************************************* */
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
Definition: Half.h:150
#define LONGS_EQUAL(expected, actual)
Definition: Test.h:135
traits
Definition: chartTesting.h:28
int main()
TEST(WhiteNoiseFactor, constructor)
Binary factor to estimate parameters of zero-mean Gaussian white noise.
Binary white noise factor.
size_t dim() const override
get the dimension of the factor (number of rows on linearization)
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:61


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:50:25