24 #include <boost/assign/std/vector.hpp> 28 using namespace gtsam;
34 TEST(testSignature, simple_conditional) {
37 vector<double>
row[3]{{0.5, 0.5}, {0.4, 0.6}, {0.2, 0.8}};
49 vector<double> actCpt = sig.
cpt();
54 TEST(testSignature, simple_conditional_nonparser) {
60 table += row1, row2, row3;
71 vector<double> actCpt = sig.
cpt();
const boost::optional< Table > & table() const
Concept check for values that can be used in unit tests.
static int runAllTests(TestResult &result)
signatures for conditional densities
TEST(testSignature, simple_conditional)
std::vector< double > cpt() const
DiscreteKeys discreteKeys() const
std::pair< Key, size_t > DiscreteKey
std::vector< double > Row
#define LONGS_EQUAL(expected, actual)
#define EXPECT_LONGS_EQUAL(expected, actual)
DiscreteKeys is a set of keys that can be assembled using the & operator.
const DiscreteKey & key() const