find_elements: Find the path from root to highest occurrence of each element

View source: R/find_elements.R

find_elementsR Documentation

Find the path from root to highest occurrence of each element

Description

A protoclust object has a prototype associated with each interior node. Every element being clustered occurs at least as a leaf but might also appear multiple times as a prototype. This function finds for each element the path from the root to the highest occurrence of that element. The path is specified by a series of 0s and 1s, where 0 means "go left" and 1 means "go right".

Usage

find_elements(hc)

Arguments

hc

a protoclust object

Value

paths

a list of length n giving, for each element, the path from root to its highest occurrence. A 0 means go left, a 1 means go right.

int_paths

a list of length n - 1 giving, for each interior node, the path from root to it. A 0 means go left, a 1 means go right.


protoclust documentation built on April 1, 2022, 9:06 a.m.