19 #include "gtest/gtest.h" 22 namespace kalman_filter {
25 TEST(GaussianDistributionTest, testConstructor) {
26 Eigen::Matrix2d covariance;
27 covariance << 1., 2., 3., 4.;
28 GaussianDistribution<double, 2> distribution(Eigen::Vector2d(0., 1.),
30 EXPECT_NEAR(0., distribution.GetMean()[0], 1e-9);
31 EXPECT_NEAR(1., distribution.GetMean()[1], 1e-9);
32 EXPECT_NEAR(2., distribution.GetCovariance()(0, 1), 1e-9);