Learn R Programming

RSSL (version 0.9.3)

generateFourClusters: 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

Run this code
# NOT RUN {
data <- generateFourClusters(1000,distance=6,expected=TRUE)
plot(data[,1],data[,2],col=data$Class,asp=1)
# }

Run the code above in your browser using DataLab