after sorting the positive examples come first (sorted on quids), then the skipped, then the negative examples (sorted on quids)
Definition at line 529 of file AnnotationTable.h. References 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 >::GetColumn1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn2(), Impala::Util::QuickSort(), Impala::Util::QuickSortDescCo(), and Impala::Core::Table::Table::Size(). 00530 { 00531 Util::QuickSortDescCo 00532 (GetColumn2()->GetData(), GetColumn1()->GetData(), 0, Size()-1); 00533 //sort positive examples 00534 int to; 00535 for(int i=0 ; i<Size() ; ++i) 00536 { 00537 to = i; 00538 if(Get2(i) != 1) 00539 break; 00540 } 00541 Util::QuickSort(GetColumn1()->GetData(), 0, to-1); 00542 //sort negative examples 00543 int from; 00544 for(int i=to ; i<Size() ; ++i) 00545 { 00546 from = i; 00547 if(Get2(i) == -1) 00548 break; 00549 } 00550 Util::QuickSort(GetColumn1()->GetData(), from, Size()-1); 00551 }
Here is the call graph for this function:
|