bpp-phyl  2.1.0
bpp::DRASRTreeLikelihoodNodeData Class Reference

Likelihood data structure for a node. More...

#include <Bpp/Phyl/Likelihood/DRASRTreeLikelihoodData.h>

+ Inheritance diagram for bpp::DRASRTreeLikelihoodNodeData:
+ Collaboration diagram for bpp::DRASRTreeLikelihoodNodeData:

List of all members.

Public Member Functions

 DRASRTreeLikelihoodNodeData ()
 DRASRTreeLikelihoodNodeData (const DRASRTreeLikelihoodNodeData &data)
DRASRTreeLikelihoodNodeDataoperator= (const DRASRTreeLikelihoodNodeData &data)
DRASRTreeLikelihoodNodeDataclone () const
const NodegetNode () const
 Get the node associated to this data structure.
void setNode (const Node *node)
 Set the node associated to this data.
VVVdoublegetLikelihoodArray ()
const VVVdoublegetLikelihoodArray () const
VVVdoublegetDLikelihoodArray ()
const VVVdoublegetDLikelihoodArray () const
VVVdoublegetD2LikelihoodArray ()
const VVVdoublegetD2LikelihoodArray () const

Private Attributes

VVVdouble nodeLikelihoods_
VVVdouble nodeDLikelihoods_
VVVdouble nodeD2Likelihoods_
const Nodenode_

Detailed Description

Likelihood data structure for a node.

This class is for use with the DRASRTreeParsimonyData class.

Store all conditionnal likelihoods:

 x[i][c][s]
   |---------> Site i
      |------> Rate class c
         |---> Ancestral state s
 

We call this the likelihood array for each node. In the same way, we store first and second order derivatives.

See also:
DRASRTreeLikelihoodData

Definition at line 73 of file DRASRTreeLikelihoodData.h.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 119 of file DRASRTreeLikelihoodData.h.

References nodeDLikelihoods_.

Definition at line 116 of file DRASRTreeLikelihoodData.h.

References nodeLikelihoods_.

const Node* bpp::DRASRTreeLikelihoodNodeData::getNode ( ) const [inline, virtual]

Get the node associated to this data structure.

Returns:
The node associated to this structure.

Implements bpp::TreeLikelihoodNodeData.

Definition at line 112 of file DRASRTreeLikelihoodData.h.

References node_.

DRASRTreeLikelihoodNodeData& bpp::DRASRTreeLikelihoodNodeData::operator= ( const DRASRTreeLikelihoodNodeData data) [inline]
void bpp::DRASRTreeLikelihoodNodeData::setNode ( const Node node) [inline, virtual]

Set the node associated to this data.

A pointer toward this node will be created and associated to this data.

Parameters:
nodeThe node to be associated to this data.

Implements bpp::TreeLikelihoodNodeData.

Definition at line 113 of file DRASRTreeLikelihoodData.h.

References node_.

Referenced by bpp::DRASRTreeLikelihoodData::initLikelihoods(), and bpp::DRASRTreeLikelihoodData::initLikelihoodsWithPatterns().


Member Data Documentation

Definition at line 80 of file DRASRTreeLikelihoodData.h.

Referenced by getNode(), operator=(), and setNode().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends