Skip to content

Commit

Permalink
fix conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Sep 20, 2024
1 parent f3bfe7e commit 245f3e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtsam/hybrid/HybridGaussianConditional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ HybridGaussianFactor::FactorValuePairs GetFactorValuePairs(
double value = 0.0;
// Check if conditional is pruned
if (conditional) {
// Assign log(|2πΣ|) = -2*log(1 / sqrt(|2πΣ|))
value = -2.0 * conditional->logNormalizationConstant();
// Assign log(\sqrt(|2πΣ|)) = -log(1 / sqrt(|2πΣ|))
value = -conditional->logNormalizationConstant();
}
return {std::dynamic_pointer_cast<GaussianFactor>(conditional), value};
};
Expand Down

0 comments on commit 245f3e0

Please sign in to comment.