incidence.matrix.full: Incidence matrix of a tree.

View source: R/shifts_manipulations.R

incidence.matrix.fullR Documentation

Incidence matrix of a tree.

Description

incidence.matrix.full computes the incidence matrix U of a tree : for a node i and a branch b, U[i,b]=1 if b is in the lineage i, and 0 otherwise.

Usage

incidence.matrix.full(phylo)

Arguments

phylo

a phylogenetic tree, class phylo.

Value

Matrix of incidence, size ntaxa + Nnode.

See Also

incidence.matrix


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