Perform hierarchical clustering. matrix must be rectangular and represents
the data matrix. distance is the distance metric, which must be a function
that accepts two equal-length input ranges of doubles. linkage is the linkage
function, which must accept a double[] that represents all possible pairwise
distances between two clusters and return a summary of these distances.
clusterBy indicates whether the rows or the columns of the matrix should
be clustered.
names is an optional string array of names, one per sample. If provided,
this information will be placed in the Cluster objects, allowing samples
to be tracked by name.
Perform hierarchical clustering. matrix must be rectangular and represents the data matrix. distance is the distance metric, which must be a function that accepts two equal-length input ranges of doubles. linkage is the linkage function, which must accept a double[] that represents all possible pairwise distances between two clusters and return a summary of these distances.
clusterBy indicates whether the rows or the columns of the matrix should be clustered.
names is an optional string array of names, one per sample. If provided, this information will be placed in the Cluster objects, allowing samples to be tracked by name.