Calculate the distances.
1 2 3 4 |
dat |
The dataset, an n by p numeric matrix, where n is number of observations and p the dimension of data. |
p |
The dimension of the data |
g |
The number of components to be fit |
mu |
A numeric matrix with each column corresponding to the mean |
sigma |
An array of dimension (p,p,g) with first two dimensions corresponding covariance matrix of each component |
clust |
A vector of integers specifying the initial partitions of the data; the default is NULL. |
tau |
An n by g matrix of posterior probability for each data point |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.