Description Usage Arguments Value Examples
clustersim: A cluster simulator for testing clustering algorithms
1 2 | clustersim(n, n2, r, K, alpha, wobble, redp = NULL, print = FALSE,
seed = NULL)
|
n |
Numerical value: The number of samples, it must be square rootable |
n2 |
Numerical value: The number of features |
r |
Numerical value: The radius to define the initial circle (use approx n/100) |
K |
Numerical value: How many clusters to simulate |
alpha |
Numerical value: How far to pull apart the clusters |
wobble |
Numerical value: The degree of noise to add to the sample co ordinates |
redp |
Numerical value: The fraction of samples to remove from one cluster |
print |
Logical flag: whether to print the PCA into current directory |
seed |
Numerical value: fixes the seed if you want to repeat results |
A list: containing 1) matrix with simulated data in it
1 | res <- clustersim(225, 900, 8, 4, 0.75, 0.025, redp = NULL, seed=123)
|
***clustersim***
computing simulated data using linear combination...
calculating PCs of data and performing kmeans...
computing centroids of clusters and pulling apart...
transforming pulled apart PC co ordinates back to dataset...
finished.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.