|
bpp-phyl3 3.0.0
|
Interface for ancestral states reconstruction methods. More...
#include <Bpp/Phyl/AncestralStateReconstruction.h>
Inheritance diagram for bpp::AncestralStateReconstruction:Public Member Functions | |
| AncestralStateReconstruction () | |
| virtual | ~AncestralStateReconstruction () |
| virtual std::vector< size_t > | getAncestralStatesForNode (uint nodeId) const =0 |
| Get ancestral states for a given node as a vector of int. More... | |
| virtual std::map< uint, std::vector< size_t > > | getAllAncestralStates () const =0 |
| Get all ancestral states for all nodes. More... | |
| virtual std::unique_ptr< Sequence > | getAncestralSequenceForNode (uint nodeId) const =0 |
| Get the ancestral sequence for a given node. More... | |
| virtual std::unique_ptr< AlignedSequenceContainer > | getAncestralSequences () const =0 |
| Get all the ancestral sequences for all nodes. More... | |
Interface for ancestral states reconstruction methods.
Definition at line 25 of file AncestralStateReconstruction.h.
|
inline |
Definition at line 28 of file AncestralStateReconstruction.h.
|
inlinevirtual |
Definition at line 29 of file AncestralStateReconstruction.h.
|
pure virtual |
Get all ancestral states for all nodes.
Call the getAncestralSequenceForNode() method on each node in the tree.
Implemented in bpp::MarginalAncestralReconstruction.
|
pure virtual |
Get the ancestral sequence for a given node.
| nodeId | The id of the node at which the sequence must be reconstructed. |
Implemented in bpp::MarginalAncestralReconstruction.
|
pure virtual |
Get all the ancestral sequences for all nodes.
Implemented in bpp::MarginalAncestralReconstruction.
|
pure virtual |
Get ancestral states for a given node as a vector of int.
The size of the vector depends on the implementation. This method is mainly for efficient internal use in other classes. Consider using the getAncestralSequenceForNode() method for a more general output.
| nodeId | the id of the node at which the states must be reconstructed. |
Implemented in bpp::MarginalAncestralReconstruction.