Learn R Programming

flexclust (version 1.3-4)

distances: Distance and Centroid Computation

Description

Helper functions to create kccaFamily objects.

Usage

distAngle(x, centers) distCanberra(x, centers) distCor(x, centers) distEuclidean(x, centers) distJaccard(x, centers) distManhattan(x, centers) distMax(x, centers) distMinkowski(x, centers, p=2)
centAngle(x) centMean(x) centMedian(x)
centOptim(x, dist) centOptim01(x, dist)

Arguments

x
A data matrix.
centers
A matrix of centroids.
p
The power of the Minkowski distance.
dist
A distance function.