helper constructor that doesn't take separate keys
parent
425c3ac42c
commit
b5cd82d0b4
|
@ -92,6 +92,11 @@ TableFactor::TableFactor(const DiscreteKeys& dkeys,
|
||||||
const DecisionTreeFactor& dtf)
|
const DecisionTreeFactor& dtf)
|
||||||
: TableFactor(dkeys, ComputeLeafOrdering(dkeys, dtf)) {}
|
: TableFactor(dkeys, ComputeLeafOrdering(dkeys, dtf)) {}
|
||||||
|
|
||||||
|
/* ************************************************************************ */
|
||||||
|
TableFactor::TableFactor(const DecisionTreeFactor& dtf)
|
||||||
|
: TableFactor(dtf.discreteKeys(),
|
||||||
|
ComputeLeafOrdering(dtf.discreteKeys(), dtf)) {}
|
||||||
|
|
||||||
/* ************************************************************************ */
|
/* ************************************************************************ */
|
||||||
TableFactor::TableFactor(const DiscreteConditional& c)
|
TableFactor::TableFactor(const DiscreteConditional& c)
|
||||||
: TableFactor(c.discreteKeys(), c) {}
|
: TableFactor(c.discreteKeys(), c) {}
|
||||||
|
|
|
@ -132,6 +132,7 @@ class GTSAM_EXPORT TableFactor : public DiscreteFactor {
|
||||||
|
|
||||||
/// Constructor from DecisionTreeFactor
|
/// Constructor from DecisionTreeFactor
|
||||||
TableFactor(const DiscreteKeys& keys, const DecisionTreeFactor& dtf);
|
TableFactor(const DiscreteKeys& keys, const DecisionTreeFactor& dtf);
|
||||||
|
TableFactor(const DecisionTreeFactor& dtf);
|
||||||
|
|
||||||
/// Constructor from DecisionTree<Key, double>/AlgebraicDecisionTree
|
/// Constructor from DecisionTree<Key, double>/AlgebraicDecisionTree
|
||||||
TableFactor(const DiscreteKeys& keys, const DecisionTree<Key, double>& dtree);
|
TableFactor(const DiscreteKeys& keys, const DecisionTree<Key, double>& dtree);
|
||||||
|
|
Loading…
Reference in New Issue