View source: R/cluster_generation_functions.R

gaussian_clusters_with_param | R Documentation |

Generate clusters of data points from Gaussian distribution with given parameters

```
gaussian_clusters_with_param(n, center, sigma)
```

`n` |
vector of number of data points in each cluster
The length of |

`center` |
matrix of centers Ncluster x dim |

`sigma` |
list of covariance matrices dim X dim. The length of sigma should be equal to the number of clusters. |

matrix of Nsamples x (dim + 1). The last column is cluster labels.

```
center = rbind(c(0,0),
c(1,1))
sigma = list(diag(c(1,1)),
diag(2,2))
gaussian_clusters_with_param(c(10, 10), center, sigma)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.