toLinkmat: Convert distance matrix to input suitable for fastLiclust

Description Usage Arguments Value

Description

Mainly intended to show equivalence with hclust, when one generates a distance matrix to use with hclust and then with fastLiclust to generate the same dendrogram.

Usage

1
toLinkmat(mat, disconnect = 1)

Arguments

mat

The input distance matrix, as obtained from as.matrix() on a dist object

disconnect

The distance value for disconnected features, e.g. 1 in dissimilarity matrices, or NA when that value was set to NA before. These points are not represented in the linkage matrix.

Value

A list with components linkmat (a matrix of connected vertex pairs), sim (the distances associated with the edges), and weights (a counter which denotes the number of original vertices summed up in a cluster, initialized to 1.)


meowcat/fastliclust documentation built on May 22, 2019, 6:51 p.m.