Skip to content

Commit 97eb6bc

Browse files
committed
renaming
1 parent 3a7a0b8 commit 97eb6bc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

gtsam/hybrid/HybridGaussianFactorGraph.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,11 @@ void HybridGaussianFactorGraph::printErrors(
114114
<< "\n";
115115
} else {
116116
// Is hybrid
117-
auto mixtureComponent =
117+
auto conditionalComponent =
118118
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";
121122
}
122123
}
123124
} else if (auto gf = std::dynamic_pointer_cast<GaussianFactor>(factor)) {
@@ -411,10 +412,10 @@ hybridElimination(const HybridGaussianFactorGraph &factors,
411412
// Create the HybridGaussianConditional from the conditionals
412413
HybridGaussianConditional::Conditionals conditionals(
413414
eliminationResults, [](const Result &pair) { return pair.first; });
414-
auto gaussianMixture = std::make_shared<HybridGaussianConditional>(
415+
auto hybridGaussian = std::make_shared<HybridGaussianConditional>(
415416
frontalKeys, continuousSeparator, discreteSeparator, conditionals);
416417

417-
return {std::make_shared<HybridConditional>(gaussianMixture), newFactor};
418+
return {std::make_shared<HybridConditional>(hybridGaussian), newFactor};
418419
}
419420

420421
/* ************************************************************************
@@ -465,7 +466,7 @@ EliminateHybrid(const HybridGaussianFactorGraph &factors,
465466
// Now we will need to know how to retrieve the corresponding continuous
466467
// densities for the assignment (c1,c2,c3) (OR (c2,c3,c1), note there is NO
467468
// 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
469470
// (c1=0,c2=1) pruned, and another could have (c2=0,c3=1) pruned, and this
470471
// creates a big problem in how to identify the intersection of non-pruned
471472
// branches.

0 commit comments

Comments
 (0)