24 using namespace gtsam;
33 0., 4.6904).finished();
48 const double sigma = 3;
55 double expected1 = 0.5 * e.dot(e);
58 double expected2 =
density.logNormalizationConstant()- 0.5 * e.dot(e);
static int runAllTests(TestResult &result)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Rot2 R(Rot2::fromAngle(0.1))
iterator insert(const std::pair< Key, Vector > &key_value)
const constBVector d() const
#define EXPECT_DOUBLES_EQUAL(expected, actual, threshold)
static GaussianDensity FromMeanAndStddev(Key key, const Vector &mean, double sigma)
Construct using a mean and standard deviation.
#define EXPECT(condition)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static shared_ptr Sigmas(const Vector &sigmas, bool smart=true)
static const double sigma
TEST(SmartFactorBase, Pinhole)
const SharedDiagonal & get_model() const