Definition at line 39 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(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get3(), and Impala::Core::Table::Table::Size().
Referenced by RandomForest(), and Impala::Core::Feature::TestRandomTree::testTableConversion().
00040 {
00041 FeatureDefinition fdef("ceci_nest_pas_un_feature_table_its_a_random-forest");
00042 FeatureTable* ft = new FeatureTable(fdef, rtt->Size(), 2);
00043 for(int i=0 ; i<rtt->Size() ; ++i)
00044 {
00045 int codeword = rtt->Get1(i);
00046 Vector::VectorReal64 v(2);
00047 v[0] = rtt->Get2(i);
00048 v[1] = rtt->Get3(i);
00049 ft->Add((codeword == -1) ? cInvalidCodeWord : codeword, v);
00050 }
00051 return ft;
00052 }
Here is the call graph for this function: