12 std::shared_ptr<PhyloLikelihoodContainer> pC,
14 const std::string& prefix) :
29 std::shared_ptr<PhyloLikelihoodContainer> pC,
30 const std::vector<size_t>& nPhylo,
32 const std::string& prefix) :
54 const auto& pl = aPL->getParameters();
56 for (
size_t i = 0; i < pl.size(); i++)
58 auto confP = dynamic_pointer_cast<ConfiguredParameter>(pl.getParameter(i));
60 throw Exception(
"SetOfAbstractPhyloLikelihood::addPhyloLikelihood: Parameter " + pl[i].getName() +
" is not configured in PhyloLikelihood " +
TextTools::toString(nPhyl));
62 auto name = confP->getName() + suff;
78 vLikCal_.push_back(aPL->getLikelihoodCalculation());
87 for (
size_t i = 0; i <
nPhylo_.size(); i++)
98 for (
size_t i = 0; i <
nPhylo_.size(); i++)
110 for (
size_t i = 0; i <
nPhylo_.size(); i++)
121 for (
size_t i = 0; i <
nPhylo_.size(); i++)
132 for (
size_t i = 0; i <
nPhylo_.size(); i++)
143 for (
size_t i = 0; i <
nPhylo_.size(); i++)
virtual void shareParameters_(const ParameterList ¶meters)
virtual void shareParameter_(const std::shared_ptr< Parameter > ¶meter)
bool hasParameter(const std::string &name) const override
ParameterList getRootFrequenciesParameters() const override
Get the parameters associated to the root frequencies(s).
ParameterList getSubstitutionModelParameters() const override
Get the parameters associated to substitution model(s).
std::vector< size_t > nPhylo_
vector of AbstractPhyloLikelihood numbers
ParameterList getRateDistributionParameters() const override
Get the parameters associated to the rate distribution(s).
ParameterList getDerivableParameters() const override
ParameterList getNonDerivableParameters() const override
ParameterList getBranchLengthParameters() const override
Get the branch lengths parameters.
std::shared_ptr< const PhyloLikelihoodInterface > getPhyloLikelihood(size_t nPhyl) const override
std::shared_ptr< PhyloLikelihoodContainer > getPhyloContainer() override
const std::vector< size_t > & getNumbersOfPhyloLikelihoods() const override
AbstractPhyloLikelihoodSet(Context &context, std::shared_ptr< PhyloLikelihoodContainer > pC, bool inCollection=true, const std::string &prefix="")
std::vector< std::shared_ptr< LikelihoodCalculation > > vLikCal_
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.
virtual void includeParameters(const ParameterList ¶ms)
virtual void setName(const std::string &name)
std::string toString(T t)
Defines the basic types of data flow nodes.