gtsam/matlab/gtsam_tests/thinBayesTree.m

6 lines
202 B
Matlab

function bayesTree = thinBayesTree(depth, width)
import gtsam.*
bayesNet = thinTreeBayesNet(depth, width);
fg = GaussianFactorGraph(bayesNet);
bayesTree = fg.eliminateMultifrontal();
end