View source: R/GenerateSSLData.R
| generate2ClassGaussian | R Documentation | 
Generate data from 2 Gaussian distributed classes
generate2ClassGaussian(n = 10000, d = 100, var = 1, expected = TRUE)
| 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 | 
Other RSSL datasets: 
generateABA(),
generateCrescentMoon(),
generateFourClusters(),
generateParallelPlanes(),
generateSlicedCookie(),
generateSpirals(),
generateTwoCircles()
data <- generate2ClassGaussian(n=1000,d=2,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.