View source: R/shifts_manipulations.R
init.incidence.matrix | R Documentation |
init.incidence.matrix
initialize the matrix updated in
update.incidence.matrix
for the computation of the incidence matrix
in incidence.matrix
.
init.incidence.matrix(phy)
phy |
Input tree. |
The initialized matrix has ntaxa column and Nnode rows. Each node represent its parental branch. A row corresponding to a tip i is initialized to a vector of zeros, with only entry i equal to one. (Branch ending at tip i is only in the i^th lineage)
Matrix with Nnode rows and ntaxa column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.