update.enumerate_parsimony
is used in function enumerate_parsimony
,
and compute the solution for the parent node, given its children.
update.enumerate_parsimony(
daughters,
daughtersParams,
parent,
cost,
clus,
pos,
...
)
A list of size nclus, each entry being a matrix representing the possible allocations starting with node parent in state k.
vector of daughters nodes.
list with length(daughters) entries, each entry being a list of k matrices representing the possible allocations starting from daughter.
the parent node.
This function takes a list with L entries corresponding to the children of a node,
and compute, for all the regimes, the possible allocations starting with parent
node in that regime. It uses functions select.matrices
to select the
possible states of the children, and matrix_of_possibles
to find the
possible states.