bpp-phyl3 3.0.0
TreeParsimonyScore.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_PARSIMONY_TREEPARSIMONYSCORE_H
6#define BPP_PHYL_PARSIMONY_TREEPARSIMONYSCORE_H
7
8#include <Bpp/Clonable.h>
9
10#include "../Tree/TreeTemplate.h"
11
12// From the STL:
13#include <vector>
14
15namespace bpp
16{
21 public virtual Clonable
22{
23public:
26
28
29public:
35 virtual unsigned int getScore() const = 0;
36
43 virtual unsigned int getScoreForSite(size_t site) const = 0;
44
50 virtual std::vector<unsigned int> getScorePerSite() const = 0;
51
57 virtual const Tree& tree() const = 0;
58
64 virtual const StateMapInterface& stateMap() const = 0;
65
71 virtual std::shared_ptr<const StateMapInterface> getStateMap() const = 0;
72};
73} // end of namespace bpp.
74#endif // BPP_PHYL_PARSIMONY_TREEPARSIMONYSCORE_H
Map the states of a given alphabet which have a model state.
Definition: StateMap.h:25
Compute a parsimony score.
virtual unsigned int getScoreForSite(size_t site) const =0
Get the score for a given site for the current tree, i.e. the total minimum number of changes in the ...
TreeParsimonyScoreInterface * clone() const =0
virtual const Tree & tree() const =0
Get the tree for which scores are computed.
virtual std::vector< unsigned int > getScorePerSite() const =0
Get the score for each site for the current tree, i.e. the total minimum number of changes in the tre...
virtual const StateMapInterface & stateMap() const =0
Get the state map associated to this instance.
virtual std::shared_ptr< const StateMapInterface > getStateMap() const =0
Get the state map associated to this instance.
virtual unsigned int getScore() const =0
Get the score for the current tree, i.e. the total minimum number of changes in the tree.
Interface for phylogenetic tree objects.
Definition: Tree.h:115
Defines the basic types of data flow nodes.