bpp-phyl
2.2.0
|
Partial implementation of the TreeParsimonyScore interface. More...
#include <Bpp/Phyl/Parsimony/AbstractTreeParsimonyScore.h>
Public Member Functions | |
AbstractTreeParsimonyScore (const Tree &tree, const SiteContainer &data, bool verbose, bool includeGaps) throw (Exception) | |
AbstractTreeParsimonyScore (const Tree &tree, const SiteContainer &data, const StateMap *statesMap, bool verbose) throw (Exception) | |
AbstractTreeParsimonyScore (const AbstractTreeParsimonyScore &tp) | |
AbstractTreeParsimonyScore & | operator= (const AbstractTreeParsimonyScore &tp) |
virtual | ~AbstractTreeParsimonyScore () |
virtual const Tree & | getTree () const |
Get the tree for wich scores are computed. More... | |
virtual std::vector< unsigned int > | getScoreForEachSite () const |
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 StateMap & | getStateMap () const |
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... | |
Protected Member Functions | |
const TreeTemplate< Node > * | getTreeP_ () const |
TreeTemplate< Node > * | getTreeP_ () |
Private Member Functions | |
void | init_ (const SiteContainer &data, bool verbose) throw (Exception) |
Private Attributes | |
TreeTemplate< Node > * | tree_ |
const SiteContainer * | data_ |
const Alphabet * | alphabet_ |
const StateMap * | statesMap_ |
size_t | nbStates_ |
Partial implementation of the TreeParsimonyScore interface.
Definition at line 54 of file AbstractTreeParsimonyScore.h.
AbstractTreeParsimonyScore::AbstractTreeParsimonyScore | ( | const Tree & | tree, |
const SiteContainer & | data, | ||
bool | verbose, | ||
bool | includeGaps | ||
) | |||
throw | ( | Exception | |
) |
Definition at line 49 of file AbstractTreeParsimonyScore.cpp.
AbstractTreeParsimonyScore::AbstractTreeParsimonyScore | ( | const Tree & | tree, |
const SiteContainer & | data, | ||
const StateMap * | statesMap, | ||
bool | verbose | ||
) | |||
throw | ( | Exception | |
) |
Definition at line 67 of file AbstractTreeParsimonyScore.cpp.
|
inline |
Definition at line 79 of file AbstractTreeParsimonyScore.h.
References bpp::StateMap::clone(), data_, statesMap_, and tree_.
|
inlinevirtual |
Definition at line 101 of file AbstractTreeParsimonyScore.h.
|
pure virtualinherited |
Implemented in bpp::DRTreeParsimonyScore.
|
pure virtualinherited |
Get the score for the current tree, i.e. the total minimum number of changes in the tree.
Implemented in bpp::DRTreeParsimonyScore.
|
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.
Implements bpp::TreeParsimonyScore.
Definition at line 99 of file AbstractTreeParsimonyScore.cpp.
|
pure virtualinherited |
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.
site | The corresponding site. |
Implemented in bpp::DRTreeParsimonyScore.
|
inlinevirtual |
Definition at line 113 of file AbstractTreeParsimonyScore.h.
References statesMap_.
|
inlinevirtual |
Get the tree for wich scores are computed.
Implements bpp::TreeParsimonyScore.
Definition at line 111 of file AbstractTreeParsimonyScore.h.
References tree_.
Referenced by bpp::DRTreeParsimonyScore::computeScores(), and bpp::DRTreeParsimonyScore::getTopology().
|
inlineprotected |
Definition at line 116 of file AbstractTreeParsimonyScore.h.
References tree_.
Referenced by bpp::DRTreeParsimonyScore::computeScores(), bpp::DRTreeParsimonyScore::DRTreeParsimonyScore(), and bpp::DRTreeParsimonyScore::operator=().
|
inlineprotected |
Definition at line 117 of file AbstractTreeParsimonyScore.h.
References tree_.
|
private |
Definition at line 82 of file AbstractTreeParsimonyScore.cpp.
References bpp::TreeTemplateTools::deleteBranchLengths(), and bpp::PatternTools::getSequenceSubset().
|
inline |
Definition at line 91 of file AbstractTreeParsimonyScore.h.
References alphabet_, bpp::StateMap::clone(), data_, nbStates_, statesMap_, and tree_.
Referenced by bpp::DRTreeParsimonyScore::operator=().
|
private |
Definition at line 60 of file AbstractTreeParsimonyScore.h.
Referenced by operator=().
|
private |
Definition at line 59 of file AbstractTreeParsimonyScore.h.
Referenced by AbstractTreeParsimonyScore(), operator=(), and ~AbstractTreeParsimonyScore().
|
private |
Definition at line 62 of file AbstractTreeParsimonyScore.h.
Referenced by operator=().
|
private |
Definition at line 61 of file AbstractTreeParsimonyScore.h.
Referenced by AbstractTreeParsimonyScore(), getStateMap(), and operator=().
|
private |
Definition at line 58 of file AbstractTreeParsimonyScore.h.
Referenced by AbstractTreeParsimonyScore(), getTree(), getTreeP_(), operator=(), and ~AbstractTreeParsimonyScore().