Go to the documentation of this file.
25 using namespace gtsam;
69 auto keyFormatter = [](
Key key) {
return key == 12 ?
"A" :
"B"; };
80 "<table class='DiscreteValues'>\n"
82 " <tr><th>Variable</th><th>value</th></tr>\n"
85 " <tr><th>B</th><td>-</td></tr>\n"
86 " <tr><th>A</th><td>One</td></tr>\n"
90 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.
DiscreteKeys is a set of keys that can be assembled using the & operator.
std::string html(const KeyFormatter &keyFormatter=DefaultKeyFormatter, const Names &names={}) const
Output as a html table.
DiscreteValues & update(const DiscreteValues &values)
Update values with corresponding keys from another DiscreteValues object.
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 Wed May 28 2025 03:06:16