Definition at line 50 of file BayesCondProb.h. References conceptPrior, Impala::Core::Table::AnnotationTable::GetLabel(), Impala::Core::Table::Bayes::mAnnoTableSize, Impala::Core::Table::Bayes::mConceptNum, and Impala::Core::Table::Bayes::tabConcept. Referenced by CalcBayes(). 00051 { 00052 if (mAnnoTableSize == 0) 00053 { 00054 std::cout << "The table size is zero: NOT acceptable" <<std::endl; 00055 for (int k=0 ; k< mConceptNum ; k++) 00056 conceptPrior[k] = 0; 00057 return; 00058 } 00059 std::cout<< std::endl <<"Concept Prior Probability:" <<std::endl <<std::endl; 00060 00061 // loop for all concepts c_{k} 00062 for (int k=0 ; k< mConceptNum ; k++) 00063 { 00064 //int tabSize = tabConcept[k]->Capacity(); 00065 int posNum = tabConcept[k]->GetNrPositive(); 00066 String strConcept = tabConcept[k]->GetLabel(); 00067 00068 conceptPrior[k] = posNum*1.0/mAnnoTableSize; 00069 std::cout << conceptPrior[k] << " Pos=" << posNum << " [c" << k << " " << strConcept << "]" << std::endl; 00070 00071 } 00072 std::cout << std::endl; 00073 }
Here is the call graph for this function:
|