Definition at line 117 of file TestRandomTree.h. References Impala::Core::Feature::DeleteForest(), Impala::Core::Feature::ReadRandomForest(), and Impala::Core::Feature::Write(). 00118 { 00119 RandomTree t0(1); 00120 RandomTree t1(2); 00121 RandomTree t2(3); 00122 RandomTreeTable table(0); 00123 Write(&t0, &table); 00124 Write(&t1, &table); 00125 Write(&t2, &table); 00126 00127 RandomForest f = ReadRandomForest(&table); 00128 CPPUNIT_ASSERT_EQUAL((UInt32) 3, (UInt32) f.size()); 00129 CPPUNIT_ASSERT(t0 == *f[0]); 00130 CPPUNIT_ASSERT(t1 == *f[1]); 00131 CPPUNIT_ASSERT(t2 == *f[2]); 00132 CPPUNIT_ASSERT_NO_THROW(DeleteForest(f)); 00133 }
Here is the call graph for this function:
|