centroidr: centroidr: centroids and distances

Description functions Author(s)

Description

The package finds the centroid of a set of points in n-dimensional space and calculates the distances between the points and the centroid. It provides two functinos: centroid and cendist, and has one internal function, euclidean.

functions

euclidean is an internal function that calculte the euclidean distance between points.

centroid finds the centroid and returns its coordinates.

centroid_distance calls centroid and euclidean and returns the distances between each point and the centroid.

Author(s)

Aleksander Chlebowski


olobiolo/centroidr documentation built on Dec. 3, 2019, 12:55 p.m.