5 #ifndef BPP_PHYL_LIKELIHOOD_DATAFLOW_BACKWARDLIKELIHOODTREE_H
6 #define BPP_PHYL_LIKELIHOOD_DATAFLOW_BACKWARDLIKELIHOODTREE_H
102 std::shared_ptr<ForwardLikelihoodTree> forwardTree,
103 std::shared_ptr<ProcessTree> tree,
106 Eigen::Index nbSite) :
const std::shared_ptr< DAGraphImpl > getGraph() const
AssociationGraphObserver< N, E >::EdgeIndex EdgeIndex
AssociationGraphObserver< N, E >::NodeIndex NodeIndex
virtual std::shared_ptr< N > getNode(NodeIndex nodeIndex) const=0
virtual NodeIndex setNodeIndex(const std::shared_ptr< N > nodeObject, NodeIndex index)=0
virtual void associateNode(std::shared_ptr< N > nodeObject, NodeGraphid node)=0
virtual bool hasNode(NodeIndex nodeIndex) const=0
BackwardLikelihoodTree(Context &c, std::shared_ptr< ForwardLikelihoodTree > forwardTree, std::shared_ptr< ProcessTree > tree, ValueRef< Eigen::RowVectorXd > rFreqs, const StateMapInterface &statemap, Eigen::Index nbSite)
const StateMapInterface & statemap_
std::shared_ptr< ForwardLikelihoodTree > forwardTree_
BackwardLikelihoodAboveRef makeBackwardLikelihoodAtEdge(PhyloTree::EdgeIndex index)
ValueRef< Eigen::RowVectorXd > rFreqs_
ConditionalLikelihoodRef setRootFrequencies(const ValueRef< Eigen::RowVectorXd > rootFreqs)
ConditionalLikelihoodRef getBackwardLikelihoodArray(PhyloTree::NodeIndex nodeId)
ConditionalLikelihoodRef makeBackwardLikelihoodAtNode(PhyloTree::NodeIndex index)
std::shared_ptr< ProcessTree > processTree_
MatrixDimension likelihoodMatrixDim_
static ValueRef< R > create(Context &c, NodeRefVec &&deps, const Dimension< R > &dim)
Build a new CWiseFill node.
Context for dataflow node construction.
static ValueRef< R > create(Context &c, NodeRefVec &&deps, const Dimension< R > &dim)
Build a new Convert node with the given output dimensions.
Map the states of a given alphabet which have a model state.
Defines the basic types of data flow nodes.
std::shared_ptr< Value< T > > ValueRef
Shared pointer alias for Value<T>.
ValueRef< MatrixLik > ConditionalLikelihoodRef
MatrixDimension conditionalLikelihoodDimension(Eigen::Index nbState, Eigen::Index nbSite)
ValueRef< MatrixLik > BackwardLikelihoodAboveRef
Basic matrix dimension type.