print method for DiscreteKeys
parent
b7da0f4838
commit
0a7db41290
|
|
@ -14,6 +14,9 @@ class DiscreteKeys {
|
||||||
bool empty() const;
|
bool empty() const;
|
||||||
gtsam::DiscreteKey at(size_t n) const;
|
gtsam::DiscreteKey at(size_t n) const;
|
||||||
void push_back(const gtsam::DiscreteKey& point_pair);
|
void push_back(const gtsam::DiscreteKey& point_pair);
|
||||||
|
void print(const std::string& s = "",
|
||||||
|
const gtsam::KeyFormatter& keyFormatter =
|
||||||
|
gtsam::DefaultKeyFormatter) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
// DiscreteValues is added in specializations/discrete.h as a std::map
|
// DiscreteValues is added in specializations/discrete.h as a std::map
|
||||||
|
|
@ -162,7 +165,6 @@ virtual class DiscreteDistribution : gtsam::DiscreteConditional {
|
||||||
gtsam::DefaultKeyFormatter) const;
|
gtsam::DefaultKeyFormatter) const;
|
||||||
double operator()(size_t value) const;
|
double operator()(size_t value) const;
|
||||||
std::vector<double> pmf() const;
|
std::vector<double> pmf() const;
|
||||||
size_t argmax() const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <gtsam/discrete/DiscreteBayesNet.h>
|
#include <gtsam/discrete/DiscreteBayesNet.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue