mlbench.waveform | R Documentation |
The generated data set consists of 21 attributes with continuous values and a variable showing the 3 classes (33% for each of 3 classes). Each class is generated from a combination of 2 of 3 "base" waves.
mlbench.waveform(n)
n |
number of patterns to create |
Returns an object of class "mlbench.waveform"
with components
x |
input values |
classes |
factor vector of length |
The original C code for the waveform generator was taken from the UCI Repository of Machine Learning Databases (Blake & Merz 1998). The C code was modified to use R's random number generator by Friedrich Leisch, who also wrote the R interface.
Breiman, L. (1996). Bias, variance, and arcing classifiers. Tech. Rep. 460, Statistics Department, University of California, Berkeley, CA, USA.
Blake, C.L. & Merz, C.J. (1998). UCI Repository of Machine Learning Databases. Irvine, CA: University of California, Irvine, Department of Information and Computer Science. Formerly available from ‘http://www.ics.uci.edu/~mlearn/MLRepository.html’.
p <- mlbench.waveform(100)
plot(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.