View source: R/GenerateSSLData.R
generateSlicedCookie | R Documentation |
Generate a sliced cookie dataset: a circle with a large margin in the middle.
generateSlicedCookie(n = 100, expected = FALSE, gap = 1)
n |
integer; number of observations to generate |
expected |
logical; TRUE if the large margin equals the class boundary, FALSE if the class boundary is perpendicular to the large margin |
gap |
numeric; Size of the gap |
A data.frame with n objects from the sliced cookie example
Other RSSL datasets:
generate2ClassGaussian()
,
generateABA()
,
generateCrescentMoon()
,
generateFourClusters()
,
generateParallelPlanes()
,
generateSpirals()
,
generateTwoCircles()
data <- generateSlicedCookie(1000,expected=FALSE)
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.