Generate data from 2 alternating classes

Description

Two clusters belonging to three classes: the cluster in the middle belongs to one class and the two on the outside to the others.

Usage

1
generateABA(n = 100, d = 2, var = 1)

Arguments

n

integer; Number of examples to generate

d

integer; dimensionality of the problem

var

numeric; size of the variance parameter

See Also

Other RSSL datasets: generate2ClassGaussian, generateCrescentMoon, generateFourClusters, generateParallelPlanes, generateSlicedCookie, generateSpirals, generateTwoCircles

Examples

1
2
data <- generateABA(n=1000,d=2,var=1)
plot(data[,1],data[,2],col=data$Class,asp=1)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.