Definition at line 24 of file RandomTreeTable.h.
References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), cInvalidCodeWord, Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), and Impala::Core::Table::Table::Size().
Referenced by ReadRandomForest(), and Impala::Core::Feature::TestRandomTree::testTableConversion().
00025 {
00026 RandomTreeTable* rtt = new RandomTreeTable(ft->Size());
00027 for(int i=0 ; i<ft->Size() ; ++i)
00028 {
00029 Quid q = ft->Get1(i);
00030 const Vector::VectorReal64& v = ft->Get2(i);
00031 double dimension = v[0];
00032 double treshold = v[1];
00033 rtt->Add((q == cInvalidCodeWord) ? -1 : q, dimension, treshold);
00034 }
00035 return rtt;
00036 }
Here is the call graph for this function: