11 AbstractAlignedPhyloLikelihoodSet::AbstractAlignedPhyloLikelihoodSet(
13 std::shared_ptr<PhyloLikelihoodContainer> pC,
15 const std::string& prefix) :
29 throw BadSizeException(
"AlignedPhyloLikelihoodSet::AlignedPhyloLikelihoodSet: mismatch lengths between aligned PhyloLikelihood: ", aPL->getNumberOfSites(),
getNumberOfSites());
37 std::shared_ptr<PhyloLikelihoodContainer> pC,
38 const std::vector<size_t>& nPhylo,
40 const std::string& prefix) :
45 for (
auto np : nPhylo)
54 throw BadSizeException(
"AlignedPhyloLikelihoodSet::AlignedPhyloLikelihoodSet: mismatch lengths between aligned PhyloLikelihood: ", aPL->getNumberOfSites(),
getNumberOfSites());
bool addPhyloLikelihood(size_t nPhyl, const std::string &suff) override
adds a PhyloLikelihood already stored in the m ap, iff it is an AlignedPhyloLikelihood of the same si...
std::shared_ptr< const AlignedPhyloLikelihoodInterface > getAlignedPhyloLikelihood(size_t nPhyl) const override
AbstractAlignedPhyloLikelihoodSet(Context &context, std::shared_ptr< PhyloLikelihoodContainer > pC, bool inCollection=true, const std::string &prefix="")
size_t getNumberOfSites() const
Get the number of sites in the dataset.
void setNumberOfSites(size_t nbSites)
The PhyloLikelihoodSet class, to manage a subset of PhyloLikelihoods from a given PhyloLikelihoodCont...
std::vector< size_t > nPhylo_
vector of AbstractPhyloLikelihood numbers
virtual bool addPhyloLikelihood(size_t nPhyl, const std::string &suff="") override
adds a PhyloLikelihood already stored in the PhyloLikelihoodContainer, iff it is an AbstractPhyloLike...
Context for dataflow node construction.
std::string toString(T t)
Defines the basic types of data flow nodes.