formatting

release/4.3a0
Varun Agrawal 2023-06-09 10:18:36 -04:00
parent 0cb1316753
commit 76568f2d73
2 changed files with 4 additions and 6 deletions

View File

@ -173,8 +173,7 @@ VectorValues HybridBayesTree::optimize(const DiscreteValues& assignment) const {
/* ************************************************************************* */
void HybridBayesTree::prune(const size_t maxNrLeaves) {
auto decisionTree =
this->roots_.at(0)->conditional()->asDiscrete();
auto decisionTree = this->roots_.at(0)->conditional()->asDiscrete();
DecisionTreeFactor prunedDecisionTree = decisionTree->prune(maxNrLeaves);
decisionTree->root_ = prunedDecisionTree.root_;

View File

@ -70,8 +70,7 @@ Ordering HybridGaussianISAM::GetOrdering(
/* ************************************************************************* */
void HybridGaussianISAM::updateInternal(
const HybridGaussianFactorGraph& newFactors,
HybridBayesTree::Cliques* orphans,
const std::optional<size_t>& maxNrLeaves,
HybridBayesTree::Cliques* orphans, const std::optional<size_t>& maxNrLeaves,
const std::optional<Ordering>& ordering,
const HybridBayesTree::Eliminate& function) {
// Remove the contaminated part of the Bayes tree
@ -101,8 +100,8 @@ void HybridGaussianISAM::updateInternal(
}
// eliminate all factors (top, added, orphans) into a new Bayes tree
HybridBayesTree::shared_ptr bayesTree =
factors.eliminateMultifrontal(elimination_ordering, function, std::cref(index));
HybridBayesTree::shared_ptr bayesTree = factors.eliminateMultifrontal(
elimination_ordering, function, std::cref(index));
if (maxNrLeaves) {
bayesTree->prune(*maxNrLeaves);