fix testHybridNonlinearFactorGraph
parent
e6db6d111c
commit
fd2820ec90
|
|
@ -512,9 +512,10 @@ TEST(HybridNonlinearFactorGraph, Full_Elimination) {
|
||||||
// P(m1)
|
// P(m1)
|
||||||
EXPECT(hybridBayesNet->at(4)->frontals() == KeyVector{M(1)});
|
EXPECT(hybridBayesNet->at(4)->frontals() == KeyVector{M(1)});
|
||||||
EXPECT_LONGS_EQUAL(0, hybridBayesNet->at(4)->nrParents());
|
EXPECT_LONGS_EQUAL(0, hybridBayesNet->at(4)->nrParents());
|
||||||
|
DiscreteTableConditional dtc = *hybridBayesNet->at(4)->asDiscrete<DiscreteTableConditional>();
|
||||||
EXPECT(
|
EXPECT(
|
||||||
dynamic_pointer_cast<DiscreteConditional>(hybridBayesNet->at(4)->inner())
|
DiscreteConditional(dtc.nrFrontals(), dtc.toDecisionTreeFactor())
|
||||||
->equals(*discreteBayesNet.at(1)));
|
.equals(*discreteBayesNet.at(1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue