Rdocumentation
powered by
Learn R Programming
MiRAnorm (version 1.0.0)
dist.func: Calculating the distance between each row of the matrix and the centroid
Description
dist.func
returns a sum total of all distances for each row of the matrix from the centroid.
Usage
dist.func(mndata, standardize = TRUE, method = "euclidean", centroid = NULL)
Arguments
mndata
matrix dataset with numeric columns.
standardize
is a booleon variable to denote whether columns should first be scaled to 0-1.
method
dictates how distance is computed. Currently, only "euclidean" is implemented.
centroid
allows user to specify the centroid values for each column. Otherwise, the mean of each column is taken by default.