9 using namespace numeric;
75 auto eg = getLikelihoodCalculationOnABranch()->getSiteLikelihoodsForAllClasses();
84 size_t nbSites = getNumberOfSites();
85 auto l = getLikelihoodPerSitePerClass();
86 vector<size_t> classes(nbSites);
87 for (
size_t i = 0; i < nbSites; ++i)
89 classes[i] = VectorTools::whichMax<DataLik>(l[i]);
VVDataLik getLikelihoodPerSitePerClass() const
Get the posterior probabilities of each class, for each site.
std::vector< size_t > getClassWithMaxPostProbPerSite() const
Defines the basic types of data flow nodes.
template void copyEigenToBpp(const ExtendedFloatMatrixXd &eigenMatrix, std::vector< std::vector< double >> &bppMatrix)
std::vector< VDataLik > VVDataLik