generateSlicedCookie {RSSL} | R Documentation |
Generate Sliced Cookie dataset
Description
Generate a sliced cookie dataset: a circle with a large margin in the middle.
Usage
generateSlicedCookie(n = 100, expected = FALSE, gap = 1)
Arguments
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 |
Value
A data.frame with n objects from the sliced cookie example
See Also
Other RSSL datasets:
generate2ClassGaussian()
,
generateABA()
,
generateCrescentMoon()
,
generateFourClusters()
,
generateParallelPlanes()
,
generateSpirals()
,
generateTwoCircles()
Examples
data <- generateSlicedCookie(1000,expected=FALSE)
plot(data[,1],data[,2],col=data$Class,asp=1)
[Package RSSL version 0.9.7 Index]