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

void Impala::Core::Table::SimilarityTableSet::ComputeRank ( int  tableIdx,
bool  descending 
) [inline]

Definition at line 271 of file SimilarityTableSet.h.

References Impala::Core::Table::Copy(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn1(), ILOG_ERROR, mQuids, mRanks, mSims, Impala::Core::Table::Table::Size(), Impala::Core::Column::SortAscending(), and Impala::Core::Column::SortDescending().

00272     {
00273         SimTableType* simTable = mSims[tableIdx];
00274         int size = simTable->Size();
00275         if (size != mQuids->Size())
00276             ILOG_ERROR("ComputeRank: tables sizes do not match: " << size << 
00277                        " " << mQuids->Size());
00278         SimTableType* tmp = new SimTableType(size);
00279         Core::Table::Copy(tmp, simTable);
00280         Core::Table::Copy(mRanks[tableIdx], mQuids);
00281         if (descending)
00282             Column::SortDescending(mRanks[tableIdx]->GetColumn1(),
00283                                    tmp->GetColumn1(), tmp->Size());
00284         else
00285             Column::SortAscending(mRanks[tableIdx]->GetColumn1(),
00286                                   tmp->GetColumn1(), tmp->Size());
00287         delete tmp;
00288     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:20:52 2011 for ImpalaSrc by  doxygen 1.5.1