sep_dist: Distance based on separation of clusters
Description
The separation between clusters is defined by the minimum distances of a point in
the cluster to a point in another cluster. The number of clusters are provided.
If not, the hierarchical clustering method is used to obtain the clusters. The
separation between the clusters for dataset X is calculated. Same is done for
dataset PX. An euclidean distance is then calculated between these separation for
X and PX.
Usage
sep_dist(X, PX, clustering = FALSE, nclust = 3)
Arguments
X
a data.frame with two or three columns, the first two columns
providing the dataset
PX
a data.frame with two or three columns, the first two columns
providing the dataset
clustering
LOGICAL; if TRUE, the third column is used as the
clustering variable, by default FALSE
nclust
the number of clusters to be obtained by hierarchial
clustering, by default nclust = 3