Go to the documentation of this file.
25 using namespace gtsam;
51 auto keyFormatter = [](
Key key) {
return key == 12 ?
"A" :
"B"; };
62 "<table class='DiscreteValues'>\n"
64 " <tr><th>Variable</th><th>value</th></tr>\n"
67 " <tr><th>B</th><td>-</td></tr>\n"
68 " <tr><th>A</th><td>One</td></tr>\n"
72 auto keyFormatter = [](
Key key) {
return key == 12 ?
"A" :
"B"; };
static int runAllTests(TestResult &result)
Concept check for values that can be used in unit tests.
#define EXPECT(condition)
std::string markdown(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const Names &names={}) const
Output as a markdown table.
std::string html(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const Names &names={}) const
Output as a html table.
DiscreteValues & update(const DiscreteValues &values)
signatures for conditional densities
const gtsam::Symbol key('X', 0)
std::pair< iterator, bool > insert(const value_type &value)
TEST(DiscreteValues, Insert)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
std::map< Key, std::vector< std::string > > Names
Translation table from values to strings.
std::uint64_t Key
Integer nonlinear key type.
static const DiscreteValues kExample
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:21