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.
compute_state_filter(cost, k)
A (ndaughters) x (nclus) binary matrix indicating the admissible states for the daughters node when parent node is in state k.
a (ndaughters) x (nclus) matrix of the cost of each state for the daughters nodes.
the parental state considered.
This function is used in functions parsimonyNumber
and enumerate_parsimony
.