generateFourClusters {RSSL} | R Documentation |
Generate Four Clusters dataset
Description
Generate a four clusters dataset
Usage
generateFourClusters(n = 100, distance = 6, expected = FALSE)
Arguments
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 |
See Also
Other RSSL datasets:
generate2ClassGaussian()
,
generateABA()
,
generateCrescentMoon()
,
generateParallelPlanes()
,
generateSlicedCookie()
,
generateSpirals()
,
generateTwoCircles()
Examples
data <- generateFourClusters(1000,distance=6,expected=TRUE)
plot(data[,1],data[,2],col=data$Class,asp=1)
[Package RSSL version 0.9.7 Index]