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

void Impala::Core::Table::Bayes::DumpMatrix ( char *  name,
double **  matrix,
int  nRow,
int  nCol,
bool  bDumpFloat = true 
) [inline]

Definition at line 383 of file Bayes.h.

Referenced by Impala::Core::Table::BayesCondProb::CalcConceptConditionalPriorProbability(), Impala::Core::Table::BayesCondProb::CalcConceptConditionalPriorProbabilityBayesRule(), Impala::Core::Table::BayesCondProb::CalcGenreConditionalPriorProbability(), Impala::Core::Table::ConfusionMatrix::DoConfusionMatrix(), LoadMatrix(), SaveConditionalProbMatrix(), and Impala::Core::Table::ConfusionMatrix::SaveConfigurationMatrix().

00384     {
00385         std::cout << std::endl << name <<" (" << nRow << " x " << nCol << "):" << std::endl;
00386 
00387         // dump order: row 0, row 1, ...
00388         for (int j=0; j<nCol; j++)
00389         {
00390             for (int i=0; i<nRow; i++)
00391             {
00392                 //std::cout << matrix[i][j] << " ";
00393                 if (bDumpFloat)
00394                     printf("%.3f ", matrix[i][j]);
00395                 else
00396                     printf("%.4d ", int(matrix[i][j]) );
00397             }
00398             std::cout << std::endl;
00399 
00400         }
00401     }


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