bpp-phyl3 3.0.0
SitePartitionTreeLikelihood.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: The Bio++ Development Group
2//
3// SPDX-License-Identifier: CECILL-2.1
4
5#ifndef BPP_PHYL_LEGACY_LIKELIHOOD_SITEPARTITIONTREELIKELIHOOD_H
6#define BPP_PHYL_LEGACY_LIKELIHOOD_SITEPARTITIONTREELIKELIHOOD_H
7
8
9#include "TreeLikelihood.h"
10
11namespace bpp
12{
21 public virtual TreeLikelihood
22{
23public:
25
26public:
27 const TransitionModel* getModel(int nodeId, size_t siteIndex) const
28 {
29 return getModelForSite(siteIndex);
30 }
31
32 TransitionModel* getModel(int nodeId, size_t siteIndex)
33 {
34 return getModelForSite(siteIndex);
35 }
36
43 virtual const TransitionModel* getModelForSite(size_t siteIndex) const = 0;
44
51 virtual TransitionModel* getModelForSite(size_t siteIndex) = 0;
52};
53} // end of namespace bpp.
54#endif // BPP_PHYL_LEGACY_LIKELIHOOD_SITEPARTITIONTREELIKELIHOOD_H
Specialization of the TreeLikelihood interface for partition models, homogeneous case.
SitePartitionHomogeneousTreeLikelihood * clone() const =0
virtual const TransitionModel * getModelForSite(size_t siteIndex) const =0
Get the substitution model associated to a given node.
TransitionModel * getModel(int nodeId, size_t siteIndex)
const TransitionModel * getModel(int nodeId, size_t siteIndex) const
virtual TransitionModel * getModelForSite(size_t siteIndex)=0
Get the substitution model associated to a given node.
Defines the basic types of data flow nodes.