bpp-phyl3  3.0.0
MixtureSequenceEvolution.cpp
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
6 
7 using namespace std;
8 using namespace bpp;
9 
10 /******************************************************************************/
11 
12 MixtureSequenceEvolution::MixtureSequenceEvolution(
13  std::shared_ptr<SubstitutionProcessCollection> processColl,
14  vector<size_t>& nProc) :
15  MultiProcessSequenceEvolution(processColl, nProc, ""),
16  simplex_(nProc.size(), 1, false, "Mixture.")
17 {
18  // initialize parameters:
20 }
21 
23 {
26 }
27 
28 void MixtureSequenceEvolution::setNamespace(const std::string& nameSpace)
29 {
31 
32  simplex_.setNamespace(nameSpace);
33 
35 }
36 
37 
39 {
41  simplex_.matchParametersValues(parameters);
42 }
43 
45 {
48 
49  return pl;
50 }
void addParameters_(const ParameterList &parameters)
void deleteParameters_(const std::vector< std::string > &names)
void setNamespace(const std::string &prefix)
bool matchParametersValues(const ParameterList &parameters) override
const ParameterList & getParameters() const override
ParameterList getNonDerivableParameters() const override
All non derivable parameters.
void fireParameterChanged(const ParameterList &parameters) override
void setNamespace(const std::string &nameSpace) override
void setSubProcessProb(const Simplex &si)
Set the probabilities of the subprocess.
Partial implementation of multiple processes of sequences.
virtual void fireParameterChanged(const ParameterList &parameters)
virtual ParameterList getNonDerivableParameters() const
All non derivable parameters.
virtual std::vector< std::string > getParameterNames() const
virtual void includeParameters(const ParameterList &params)
const std::vector< double > & getFrequencies() const
void setFrequencies(const std::vector< double > &)
Defines the basic types of data flow nodes.