Fix in testGaussianBayesTree

release/4.3a0
Richard Roberts 2013-08-06 16:18:09 +00:00
parent c5b0e14b12
commit 3fbc0c739f
1 changed files with 2 additions and 4 deletions

View File

@ -169,12 +169,10 @@ TEST( GaussianBayesTree, balanced_smoother_marginals )
TEST( GaussianBayesTree, balanced_smoother_shortcuts )
{
// Create smoother with 7 nodes
Ordering ordering;
ordering += X(1),X(3),X(5),X(7),X(2),X(6),X(4);
GaussianFactorGraph smoother = createSmoother(7);
// Create the Bayes tree
GaussianBayesTree bayesTree = *smoother.eliminateMultifrontal(ordering);
GaussianBayesTree bayesTree = *smoother.eliminateMultifrontal();
// Check the conditional P(Root|Root)
GaussianBayesNet empty;
@ -183,7 +181,7 @@ TEST( GaussianBayesTree, balanced_smoother_shortcuts )
EXPECT(assert_equal(empty,actual1,tol));
// Check the conditional P(C2|Root)
GaussianBayesTree::sharedClique C2 = bayesTree[ordering[X(3)]];
GaussianBayesTree::sharedClique C2 = bayesTree[X(3)];
GaussianBayesNet actual2 = C2->shortcut(R);
EXPECT(assert_equal(empty,actual2,tol));