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 /* ************************************************************************* */
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
Definition: BFloat16.h:88
#define LONGS_EQUAL(expected, actual)
Definition: Test.h:134
traits
Definition: chartTesting.h:28
int main()
Binary factor to estimate parameters of zero-mean Gaussian white noise.
Binary white noise factor.
TEST(SmartFactorBase, Pinhole)
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:102


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:39:57