use DiscreteFactor for DiscreteConditional constructor
parent
f932945652
commit
f8dedb5035
|
@ -44,8 +44,8 @@ template class GTSAM_EXPORT
|
|||
|
||||
/* ************************************************************************** */
|
||||
DiscreteConditional::DiscreteConditional(const size_t nrFrontals,
|
||||
const DecisionTreeFactor& f)
|
||||
: BaseFactor(f / f.sum(nrFrontals)->toDecisionTreeFactor()),
|
||||
const DiscreteFactor& f)
|
||||
: BaseFactor((f / f.sum(nrFrontals))->toDecisionTreeFactor()),
|
||||
BaseConditional(nrFrontals) {}
|
||||
|
||||
/* ************************************************************************** */
|
||||
|
|
|
@ -54,7 +54,7 @@ class GTSAM_EXPORT DiscreteConditional
|
|||
DiscreteConditional() {}
|
||||
|
||||
/// Construct from factor, taking the first `nFrontals` keys as frontals.
|
||||
DiscreteConditional(size_t nFrontals, const DecisionTreeFactor& f);
|
||||
DiscreteConditional(size_t nFrontals, const DiscreteFactor& f);
|
||||
|
||||
/**
|
||||
* Construct from DiscreteKeys and AlgebraicDecisionTree, taking the first
|
||||
|
|
Loading…
Reference in New Issue