View source: R/extendr-wrappers.R
| rs_data_clusters | R Documentation |
Generates synthetic data with clear cluster structure.
rs_data_clusters(n_samples, dim, n_clusters, seed)
n_samples |
Integer. Number of data points to generate. |
dim |
Integer. Dimensionality of the data |
n_clusters |
Integer. Number of clusters to produce in the data. |
seed |
Integer. For reproducibility purposes |
A list with the following elements:
data - Numerical matrix with the data.
clusters - Cluster assignments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.