40 #ifndef _RNONHOMOGENEOUSMIXEDTREELIKELIHOOD_H_ 41 #define _RNONHOMOGENEOUSMIXEDTREELIKELIHOOD_H_ 44 #include "../Model/MixedSubstitutionModelSet.h" 46 #include <Bpp/Numeric/VectorTools.h> 47 #include <Bpp/Numeric/Prob/DiscreteDistribution.h> 134 DiscreteDistribution* rDist,
161 const SiteContainer& data,
165 DiscreteDistribution* rDist,
175 void init(
bool usePatterns);
198 DiscreteDistribution* rDist,
200 bool usePatterns =
true)
219 const SiteContainer& data,
221 DiscreteDistribution* rDist,
223 bool usePatterns = true)
242 void setData(
const SiteContainer& sites)
throw (Exception);
246 void initialize() throw (Exception);
248 void computeTreeDLikelihood(const
string& variable);
250 void computeTreeD2Likelihood(const
string& variable);
257 double getProbability() const;
264 void setProbability(
double x);
280 virtual void computeSubtreeLikelihood(
const Node* node);
282 virtual void computeDownSubtreeDLikelihood(
const Node*);
284 virtual void computeDownSubtreeD2Likelihood(
const Node*);
286 void fireParameterChanged(
const ParameterList& params);
288 void computeTransitionProbabilitiesForNode(
const Node* node);
293 #endif // _RNONHOMOGENEOUSMIXEDTREELIKELIHOOD_H_ This class implement the 'traditional' way of computing likelihood for a tree, allowing for non-homog...
bool main_
a flag to say if this object is the head of the hierarchy
Interface for phylogenetic tree objects.
map< int, vector< RNonHomogeneousMixedTreeLikelihood * > > mvTreeLikelihoods_
the map of the branch numbers to the vectors of the TreeLikelihoods for the expanded model on this br...
MixedSubstitutionModelSet::HyperNode hyperNode_
A specific HyperNode in which the computation is processed. If the probability of this HyperNode is -...
Substitution models manager for Mixed Substitution Models. This class inherits from SubstitutionModel...
The phylogenetic node class.
int upperNode_
the number of the node under which tree the Treelikelihood is computed.