Calculates mahalanobis distances
A matrix of numerical data points.
A gaussian model as returned by the
A vector of labels..
train function finds the centroids and covariance matrices for a
set of data and corresponding labels: one per unique label. This function
can be used to find the mahalanobis distance of every data point in a
dataset to each of the class centroids. The columns of the resulting
matrix are marked with the label of the centroid to which they refer. The
mahal should be used if you want to find the closest
centroid to each data point.
A matrix of distances with one column for every class (label) in the gaussian model.
train, mahal, bayes.lab, bayes.dist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.