data.gen.spirals: Spirals

View source: R/data_gen_Class.R

data.gen.spiralsR Documentation

Spirals

Description

Spirals

Usage

data.gen.spirals(n, cycles = 1, s = 0, do.plot = TRUE)

Arguments

n

The data length to be generated.

cycles

The number of cycles of spirals.

s

The level of Gaussian noise, default 0.

do.plot

Logical value. If TRUE (default value), a plot of the generated Spirals is shown.

Value

A list of two variables, x and classes.

References

Friedrich Leisch & Evgenia Dimitriadou (2010). mlbench: Machine Learning Benchmark Problems. R package version 2.1-1.

Examples

Spirals=data.gen.spirals(n = 2000, cycles=2, s=0.01, do.plot=TRUE)

synthesis documentation built on Sept. 11, 2024, 6:30 p.m.