Skip to content

Commit

Permalink
use deadModeThreshold
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Jan 25, 2025
1 parent 1b79e88 commit ddb430c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/hybrid/HybridBayesNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ HybridBayesNet HybridBayesNet::prune(size_t maxNrLeaves, bool removeDeadModes,
Vector probabilities = marginals.marginalProbabilities(dkey);

int index = -1;
auto threshold = (probabilities.array() > 0.99);
auto threshold = (probabilities.array() > deadModeThreshold);
// If atleast 1 value is non-zero, then we can find the index
// Else if all are zero, index would be set to 0 which is incorrect
if (!threshold.isZero()) {
Expand Down

0 comments on commit ddb430c

Please sign in to comment.