Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Core::Feature::TestRandomTree::testGetCodeword (  )  [inline]

Definition at line 62 of file TestRandomTree.h.

References Impala::Core::Feature::RandomTree::GetCodeWord().

00063     {
00064         RandomTree t(0, 1.2,
00065                      new RandomTree(1, 3.2, new RandomTree(1), new RandomTree(2)),
00066                      new RandomTree(1, 1.2, new RandomTree(3), new RandomTree(4)));
00067         Vector::VectorReal64 v1(0.7, 2.7);
00068         Vector::VectorReal64 v2(0.7, 4.7);
00069         Vector::VectorReal64 v3(1.7, 0.7);
00070         Vector::VectorReal64 v4(1.7, 2.7);
00071         CPPUNIT_ASSERT_EQUAL(1, t.GetCodeWord(v1));
00072         CPPUNIT_ASSERT_EQUAL(2, t.GetCodeWord(v2));
00073         CPPUNIT_ASSERT_EQUAL(3, t.GetCodeWord(v3));
00074         CPPUNIT_ASSERT_EQUAL(4, t.GetCodeWord(v4));
00075     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:19:31 2011 for ImpalaSrc by  doxygen 1.5.1