Compute a parsimony score.
More...
#include <Bpp/Phyl/Parsimony/TreeParsimonyScore.h>
|
| | TreeParsimonyScore () |
| |
| virtual | ~TreeParsimonyScore () |
| |
| TreeParsimonyScore * | clone () const =0 |
| |
| virtual unsigned int | getScore () const =0 |
| | Get the score for the current tree, i.e. the total minimum number of changes in the tree. More...
|
| |
| 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 tree for this site. More...
|
| |
| virtual std::vector< unsigned int > | getScoreForEachSite () const =0 |
| | Get the score for each site for the current tree, i.e. the total minimum number of changes in the tree for each site. More...
|
| |
| virtual const Tree & | getTree () const =0 |
| | Get the tree for wich scores are computed. More...
|
| |
Compute a parsimony score.
Definition at line 55 of file TreeParsimonyScore.h.
◆ TreeParsimonyScore()
| bpp::TreeParsimonyScore::TreeParsimonyScore |
( |
| ) |
|
|
inline |
◆ ~TreeParsimonyScore()
| virtual bpp::TreeParsimonyScore::~TreeParsimonyScore |
( |
| ) |
|
|
inlinevirtual |
◆ clone()
◆ getScore()
| virtual unsigned int bpp::TreeParsimonyScore::getScore |
( |
| ) |
const |
|
pure virtual |
Get the score for the current tree, i.e. the total minimum number of changes in the tree.
- Returns
- The minimum total number of changes in the tree.
Implemented in bpp::DRTreeParsimonyScore.
◆ getScoreForEachSite()
| virtual std::vector<unsigned int> bpp::TreeParsimonyScore::getScoreForEachSite |
( |
| ) |
const |
|
pure virtual |
Get the score for each site for the current tree, i.e. the total minimum number of changes in the tree for each site.
- Returns
- The minimum total number of changes in the tree for each site.
Implemented in bpp::AbstractTreeParsimonyScore.
◆ getScoreForSite()
| virtual unsigned int bpp::TreeParsimonyScore::getScoreForSite |
( |
size_t |
site | ) |
const |
|
pure virtual |
Get the score for a given site for the current tree, i.e. the total minimum number of changes in the tree for this site.
- Parameters
-
| site | The corresponding site. |
- Returns
- The minimum total number of changes in the tree for site 'site'.
Implemented in bpp::DRTreeParsimonyScore.
◆ getTree()
| virtual const Tree& bpp::TreeParsimonyScore::getTree |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: