5 #ifndef BPP_PHYL_LEGACY_LIKELIHOOD_PAIREDSITELIKELIHOODS_H
6 #define BPP_PHYL_LEGACY_LIKELIHOOD_PAIREDSITELIKELIHOODS_H
45 const std::vector<std::vector<double>>& siteLogLikelihoods,
46 const std::vector<std::string>& modelNames = std::vector<std::string>()
60 const std::vector<double>& siteLogLikelihoods,
61 const std::string& modelName =
"");
113 catch (std::out_of_range&)
115 throw Exception(
"PairedSiteLikelihoods::nsites: The container is empty, there isn't a number of sites.");
125 void setName(std::size_t pos, std::string& name)
156 static std::vector<int>
bootstrap(std::size_t length,
double scaling = 1);
A container for paired-site likelihoods (likelihoods over the same sites for different models,...
size_t getNumberOfModels() const
Get the number of models in the container.
std::vector< std::vector< double > > logLikelihoods_
const std::vector< std::string > & getModelNames() const
std::size_t getNumberOfSites() const
void appendModels(const PairedSiteLikelihoods &psl)
Append models by concatenation.
std::vector< std::string > modelNames_
const std::vector< std::vector< double > > & getLikelihoods() const
std::pair< std::vector< std::string >, std::vector< double > > computeExpectedLikelihoodWeights(int replicates=10000) const
Compute the Expected Likelihood Weights of the models.
void appendModel(const std::vector< double > &siteLogLikelihoods, const std::string &modelName="")
Append a model.
void setName(std::size_t pos, std::string &name)
Set the name of a model.
static std::vector< int > bootstrap(std::size_t length, double scaling=1)
Draw a nonparametric pseudoreplicate.
The TreeLikelihood interface.
Defines the basic types of data flow nodes.