clustersim {M3C} | R Documentation

## clustersim: A cluster simulator for testing clustering algorithms

### Description

clustersim: A cluster simulator for testing clustering algorithms

### Usage

    clustersim(n, n2, r, K, alpha, wobble, redp = NULL, print = FALSE,
      seed = NULL)

### Arguments

`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

### Value

A list: containing 1) matrix with simulated data in it

### Examples

    res <- clustersim(225, 900, 8, 4, 0.75, 0.025, redp = NULL, print = TRUE, seed=123)

[Package M3C version 1.4.1 Index]