Definition at line 288 of file FeatureTable.h. References 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::AnnotationTable::IsPositive(), Impala::MakeString(), Impala::Util::IOBuffer::Puts(), Impala::Core::Vector::VectorTem< ElemT >::Size(), Impala::Core::Table::Table::Size(), and Impala::Util::IOBuffer::Valid(). Referenced by WritePlainAsciiFile(), and WriteSvmFile(). 00290 { 00291 if (! (buf && buf->Valid())) 00292 return; 00293 00294 for (int i=0 ; i<Size() ; i++) 00295 { 00296 String s(""); 00297 if (printQuid) 00298 { 00299 Quid quid = Get1(i); 00300 if (truth == 0) 00301 { 00302 s = QuidObj(quid).ToString() + " "; 00303 } 00304 else 00305 { 00306 s = (truth->IsPositive(quid)) ? "+1 " : "-1 "; 00307 } 00308 } 00309 ColumnVectorSet::ColElemType v = Get2(i); 00310 for (int j=0 ; j<v.Size() ; j++) 00311 { 00312 if (printIndex) 00313 s += MakeString(j+1) + ":"; 00314 s += MakeString(v[j]) + " "; 00315 } 00316 buf->Puts(s); 00317 } 00318 }
Here is the call graph for this function:
|