calc.dist.clusters: INTERNAL

Description Usage Arguments Details Value

Description

Calculates distance between two clusters

Usage

1
calc.dist.clusters(clust.1, clust.2, type = "single", dist.type = "spearman")

Arguments

clust.1

An (n by $m_1$) matrix of $m_1$ vectors composing a cluster

clust.2

An (n by $m_2$) matrix of $m_2$ vectors composing a cluster

type

Clustering by cor

dist.type

type: “single”, “complete”, or “average”

Details

The distance between the clusters is if type = “single": the minimum of the distances between the vectors in clust.1 and the vectors in clust.2 if type = “complete": the maximum of the distances between the vectors in clust.1 and the vectors in clust.2 if type = “average": the mean of the distances between the vectors in clust.1 and the vectors in clust.2

Value

A numeric value, the distance between clust.1 and clust.2


ftyu1234/Aclust documentation built on May 16, 2019, 3:37 p.m.