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

compute_state_filter {PhylogeneticEM} | R 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.

[Package PhylogeneticEM version 1.1.0 Index]