compute_state_filter: List of potential daughter states when parent is in state k.

compute_state_filterR Documentation

List of potential daughter states when parent is in state k.

Description

compute_state_filter compute the admissible daughters states, i.e. states that realize the minimum cost for the tree parent -> daughter -> subtree(daughter), when the parent node is in state k.

Usage

compute_state_filter(cost, k)

Arguments

cost

a (ndaughters) x (nclus) matrix of the cost of each state for the daughters nodes.

k

the parental state considered.

Details

This function is used in functions parsimonyNumber and enumerate_parsimony.

Value

A (ndaughters) x (nclus) binary matrix indicating the admissible states for the daughters node when parent node is in state k.


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.