bpp-phyl3
3.0.0
|
Likelihood data structure for a node. More...
#include <Bpp/Phyl/Legacy/Likelihood/DRASDRTreeLikelihoodData.h>
Public Member Functions | |
DRASDRTreeLikelihoodNodeData () | |
DRASDRTreeLikelihoodNodeData (const DRASDRTreeLikelihoodNodeData &data) | |
DRASDRTreeLikelihoodNodeData & | operator= (const DRASDRTreeLikelihoodNodeData &data) |
virtual | ~DRASDRTreeLikelihoodNodeData () |
DRASDRTreeLikelihoodNodeData * | clone () const |
const Node * | getNode () const |
Get the node associated to this data structure. More... | |
void | setNode (const Node *node) |
Set the node associated to this data. More... | |
const std::map< int, VVVdouble > & | getLikelihoodArrays () const |
std::map< int, VVVdouble > & | getLikelihoodArrays () |
VVVdouble & | getLikelihoodArrayForNeighbor (int neighborId) |
const VVVdouble & | getLikelihoodArrayForNeighbor (int neighborId) const |
Vdouble & | getDLikelihoodArray () |
const Vdouble & | getDLikelihoodArray () const |
Vdouble & | getD2LikelihoodArray () |
const Vdouble & | getD2LikelihoodArrayForNeighbor () const |
bool | isNeighbor (int neighborId) const |
void | eraseNeighborArrays () |
Private Attributes | |
std::map< int, VVVdouble > | nodeLikelihoods_ |
This contains all likelihood values used for computation. More... | |
Vdouble | nodeDLikelihoods_ |
This contains all likelihood first order derivatives values used for computation. More... | |
Vdouble | nodeD2Likelihoods_ |
This contains all likelihood second order derivatives values used for computation. More... | |
const Node * | node_ |
Likelihood data structure for a node.
This class is for use with the DRASDRTreeLikelihoodData class.
Store for each neighbor node an array with conditional likelihoods.
Definition at line 72 of file DRASDRTreeLikelihoodData.h.
|
inline |
Definition at line 115 of file DRASDRTreeLikelihoodData.h.
Referenced by clone().
|
inline |
Definition at line 117 of file DRASDRTreeLikelihoodData.h.
|
inlinevirtual |
Definition at line 133 of file DRASDRTreeLikelihoodData.h.
|
inlinevirtual |
Implements bpp::TreeLikelihoodNodeData.
Definition at line 135 of file DRASDRTreeLikelihoodData.h.
References DRASDRTreeLikelihoodNodeData().
|
inline |
Definition at line 172 of file DRASDRTreeLikelihoodData.h.
References nodeD2Likelihoods_, nodeDLikelihoods_, and nodeLikelihoods_.
Referenced by bpp::DRASDRTreeLikelihoodData::reInit().
|
inline |
Definition at line 163 of file DRASDRTreeLikelihoodData.h.
References nodeD2Likelihoods_.
Referenced by bpp::DRASDRTreeLikelihoodData::initLikelihoods(), and bpp::DRASDRTreeLikelihoodData::reInit().
|
inline |
Definition at line 165 of file DRASDRTreeLikelihoodData.h.
References nodeD2Likelihoods_.
|
inline |
Definition at line 159 of file DRASDRTreeLikelihoodData.h.
References nodeDLikelihoods_.
Referenced by bpp::DRASDRTreeLikelihoodData::initLikelihoods(), and bpp::DRASDRTreeLikelihoodData::reInit().
|
inline |
Definition at line 161 of file DRASDRTreeLikelihoodData.h.
References nodeDLikelihoods_.
|
inline |
Definition at line 149 of file DRASDRTreeLikelihoodData.h.
References nodeLikelihoods_.
Referenced by bpp::DRASDRTreeLikelihoodData::reInit(), and bpp::NNIHomogeneousTreeLikelihood::testNNI().
|
inline |
Definition at line 154 of file DRASDRTreeLikelihoodData.h.
References nodeLikelihoods_.
|
inline |
Definition at line 147 of file DRASDRTreeLikelihoodData.h.
References nodeLikelihoods_.
|
inline |
Definition at line 145 of file DRASDRTreeLikelihoodData.h.
References nodeLikelihoods_.
Referenced by bpp::DRASDRTreeLikelihoodData::initLikelihoods().
|
inlinevirtual |
Get the node associated to this data structure.
Implements bpp::TreeLikelihoodNodeData.
Definition at line 141 of file DRASDRTreeLikelihoodData.h.
References node_.
|
inline |
Definition at line 167 of file DRASDRTreeLikelihoodData.h.
References nodeLikelihoods_.
|
inline |
Definition at line 124 of file DRASDRTreeLikelihoodData.h.
References node_, nodeD2Likelihoods_, nodeDLikelihoods_, and nodeLikelihoods_.
|
inlinevirtual |
Set the node associated to this data.
A pointer toward this node will be created and associated to this data.
node | The node to be associated to this data. |
Implements bpp::TreeLikelihoodNodeData.
Definition at line 143 of file DRASDRTreeLikelihoodData.h.
References node_.
Referenced by bpp::DRASDRTreeLikelihoodData::initLikelihoods(), and bpp::DRASDRTreeLikelihoodData::reInit().
|
private |
Definition at line 112 of file DRASDRTreeLikelihoodData.h.
Referenced by getNode(), operator=(), and setNode().
|
mutableprivate |
This contains all likelihood second order derivatives values used for computation.
x[i] |---------> Site i
We call this the d2Likelihood array for each node.
Definition at line 110 of file DRASDRTreeLikelihoodData.h.
Referenced by eraseNeighborArrays(), getD2LikelihoodArray(), getD2LikelihoodArrayForNeighbor(), and operator=().
|
mutableprivate |
This contains all likelihood first order derivatives values used for computation.
x[i] |---------> Site i
We call this the dLikelihood array for each node.
Definition at line 99 of file DRASDRTreeLikelihoodData.h.
Referenced by eraseNeighborArrays(), getDLikelihoodArray(), and operator=().
|
mutableprivate |
This contains all likelihood values used for computation.
x[b][i][c][s] |------------> Neighbor node of n (id) |---------> Site i |------> Rate class c |---> Ancestral state s
We call this the likelihood array for each node.
Definition at line 89 of file DRASDRTreeLikelihoodData.h.
Referenced by eraseNeighborArrays(), getLikelihoodArrayForNeighbor(), getLikelihoodArrays(), isNeighbor(), and operator=().