mlbench.waveform: Waveform Database Generator

mlbench.waveformR Documentation

Waveform Database Generator

Description

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.

Usage

  mlbench.waveform(n)

Arguments

n

number of patterns to create

Value

Returns an object of class "mlbench.waveform" with components

x

input values

classes

factor vector of length n with target classes

Source

The original C code for the waveform generator was taken from the UCI Repository of Machine Learning Databases \bibcitepBlake+Merz:1998. The C code was modified to use R's random number generator by Friedrich Leisch, who also wrote the R interface.

References

\bibshow

Breiman:1996b, Blake+Merz:1998

Examples

p <- mlbench.waveform(100)
plot(p)

mlbench documentation built on March 26, 2026, 5:09 p.m.