View source: R/GenerateSSLData.R
| generateFourClusters | R Documentation |
Generate a four clusters dataset
generateFourClusters(n = 100, distance = 6, expected = FALSE)
n |
integer; Number of observations to generate |
distance |
numeric; Distance between clusters (default: 6) |
expected |
logical; TRUE if the large margin equals the class boundary, FALSE if the class boundary is perpendicular to the large margin |
Other RSSL datasets:
generate2ClassGaussian(),
generateABA(),
generateCrescentMoon(),
generateParallelPlanes(),
generateSlicedCookie(),
generateSpirals(),
generateTwoCircles()
data <- generateFourClusters(1000,distance=6,expected=TRUE)
plot(data[,1],data[,2],col=data$Class,asp=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.