View source: R/cluster_generation_functions.R

gaussian_clusters | R Documentation |

Generate clusters of data points from Gaussian distribution with randomly generated parameters

```
gaussian_clusters(
n = c(50, 50),
dim = 2,
sd.max = 0.1,
sd.noise = 0.01,
r.range = c(0.1, 1)
)
```

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

`dim` |
number of dimensions |

`sd.max` |
maximum standard deviation of clusters |

`sd.noise` |
standard deviation of the added noise |

`r.range` |
the range (min, max) of distance of cluster centers from the origin |

a list of data points (X) and cluster labels (class)

```
data = gaussian_clusters()
X = data$X
y = data$class
```

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.