40 #ifndef _PAIREDSITELLIKELIHOODS_H_ 41 #define _PAIREDSITELLIKELIHOODS_H_ 49 #include <Bpp/Exceptions.h> 79 const std::vector<std::vector<double> >& siteLogLikelihoods,
80 const std::vector<std::string>& modelNames = std::vector<std::string>()
94 const std::vector<double>& siteLogLikelihoods,
95 const std::string& modelName =
"") throw (Exception);
147 catch (std::out_of_range&)
149 throw Exception(
"PairedSiteLikelihoods::nsites: The container is empty, there isn't a number of sites.");
159 void setName(std::size_t pos, std::string& name)
190 static std::vector<int>
bootstrap(std::size_t length,
double scaling = 1);
195 #endif //_PAIREDSITELLIKELIHOODS_H_ const std::vector< std::string > & getModelNames() const
A container for paired-site likelihoods (likelihoods over the same sites for different models...
static std::vector< int > bootstrap(std::size_t length, double scaling=1)
Draw a nonparametric pseudoreplicate.
void appendModels(const PairedSiteLikelihoods &psl)
Append models by concatenation.
The TreeLikelihood interface.
void appendModel(const std::vector< double > &siteLogLikelihoods, const std::string &modelName="")
Append a model.
std::pair< std::vector< std::string >, std::vector< double > > computeExpectedLikelihoodWeights(int replicates=10000) const
Compute the Expected Likelihood Weights of the models.
std::vector< std::vector< double > > logLikelihoods_
std::size_t getNumberOfSites() const
const std::vector< std::vector< double > > & getLikelihoods() const
size_t getNumberOfModels() const
Get the number of models in the container.
void setName(std::size_t pos, std::string &name)
Set the name of a model.
std::vector< std::string > modelNames_