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

void Impala::Application::CreateTestQuids ( String  resultname,
Util::Database *  db,
int  part,
int  partCount,
int  totalSize 
)

Definition at line 627 of file mainPrecomputeKernelMatrix.cpp.

References ILOG_ERROR, ILOG_VAR, Impala::MakeString(), and Impala::Core::Table::Write().

Referenced by makeTestMatrix().

00629 {
00630     ILOG_VAR(Application.CreateTestQuids);
00631     String filename = resultname + MakeString(part) + "of" + MakeString(partCount) + ".quids";
00632     int begin = (totalSize*part)/partCount;
00633     int end = (totalSize*(part+1))/partCount;
00634     Table::QuidTable* quids = new Table::QuidTable(end-begin);
00635     for(int i=begin ; i<end ; ++i)
00636         quids->Add(i);
00637     // fill table with quids
00638     if (!Write(quids, filename, db, false))
00639         ILOG_ERROR("could not write " << filename);
00640     delete quids;
00641 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:36:39 2010 for ImpalaSrc by  doxygen 1.5.1