make.leaf.paths {treeClust}R Documentation

Make matrix of leaf paths

Description

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

Usage

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.


[Package treeClust version 1.1-7 Index]