make.leaf.paths: Make matrix of leaf paths

Description Usage Arguments Details Value

Description

It is helpful to know the parent nodes for each tree node. This function creates a matrix with that information.

Usage

1
make.leaf.paths(up.to = 2047)

Arguments

up.to

Number of rows for which to compute leaf.paths.

Details

The ith row of the resulting matrix lists all the leaves, including i, that would be traversed from the root to leaf i. Unneeded columns have zeros.

Value

Numeric matrix with "up.to" rows. If 2^j <= up.to < 2^(j+1), j columns.


treeClust documentation built on May 1, 2019, 7:59 p.m.