Generate data from 2 Gaussian distributed classes

Share:

Description

Generate data from 2 Gaussian distributed classes

Usage

1
generate2ClassGaussian(n = 10000, d = 100, var = 1, expected = TRUE)

Arguments

n

integer; Number of examples to generate

d

integer; dimensionality of the problem

var

numeric; size of the variance parameter

expected

logical; whether the decision boundary should be the expected or perpendicular

See Also

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

Examples

1
2
data <- generate2ClassGaussian(n=1000,d=2,expected=FALSE)
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.