25 using namespace gtsam;
44 CHECK(hc0->isHybrid());
47 const auto mixture = hc0->asMixture();
55 CHECK(hc1->isContinuous());
58 const auto gaussian = hc1->asGaussian();
67 CHECK(hc2->isDiscrete());
70 const auto discrete = hc2->asDiscrete();
Matrix< RealScalar, Dynamic, Dynamic > M
static int runAllTests(TestResult &result)
static bool CheckInvariants(const GaussianMixture &conditional, const VALUES &x)
#define EXPECT(condition)
Eigen::Matrix< double, 1, 1 > Vector1
HybridBayesNet createHybridBayesNet(size_t num_measurements=1, bool manyModes=false)
TEST(SmartFactorBase, Pinhole)
const GaussianMixture mixture({Z(0)}, {X(0)}, {mode}, conditionals)