@@ -114,10 +114,11 @@ void HybridGaussianFactorGraph::printErrors(
114
114
<< " \n " ;
115
115
} else {
116
116
// Is hybrid
117
- auto mixtureComponent =
117
+ auto conditionalComponent =
118
118
hc->asMixture ()->operator ()(values.discrete ());
119
- mixtureComponent->print (ss.str (), keyFormatter);
120
- std::cout << " error = " << mixtureComponent->error (values) << " \n " ;
119
+ conditionalComponent->print (ss.str (), keyFormatter);
120
+ std::cout << " error = " << conditionalComponent->error (values)
121
+ << " \n " ;
121
122
}
122
123
}
123
124
} else if (auto gf = std::dynamic_pointer_cast<GaussianFactor>(factor)) {
@@ -411,10 +412,10 @@ hybridElimination(const HybridGaussianFactorGraph &factors,
411
412
// Create the HybridGaussianConditional from the conditionals
412
413
HybridGaussianConditional::Conditionals conditionals (
413
414
eliminationResults, [](const Result &pair) { return pair.first ; });
414
- auto gaussianMixture = std::make_shared<HybridGaussianConditional>(
415
+ auto hybridGaussian = std::make_shared<HybridGaussianConditional>(
415
416
frontalKeys, continuousSeparator, discreteSeparator, conditionals);
416
417
417
- return {std::make_shared<HybridConditional>(gaussianMixture ), newFactor};
418
+ return {std::make_shared<HybridConditional>(hybridGaussian ), newFactor};
418
419
}
419
420
420
421
/* ************************************************************************
@@ -465,7 +466,7 @@ EliminateHybrid(const HybridGaussianFactorGraph &factors,
465
466
// Now we will need to know how to retrieve the corresponding continuous
466
467
// densities for the assignment (c1,c2,c3) (OR (c2,c3,c1), note there is NO
467
468
// defined order!). We also need to consider when there is pruning. Two
468
- // mixture factors could have different pruning patterns - one could have
469
+ // hybrid factors could have different pruning patterns - one could have
469
470
// (c1=0,c2=1) pruned, and another could have (c2=0,c3=1) pruned, and this
470
471
// creates a big problem in how to identify the intersection of non-pruned
471
472
// branches.
0 commit comments