Learn R Programming

VBmix (version 0.3.2)

spiralgen:

Description

generates data elements along a spiral with additional noise.

Usage

spiralgen(radius = 10, n = 1000, laps = 2, noise = 1)

Arguments

radius
determines the radius of a spiral revolution.
n
number of elements to generate.
laps
number of revolutions of the spiral.
noise
determines the width of the spiral stroke.

Value

matrix of sampled row-elements.

See Also

datagen circlegen

Examples

Run this code
temp <- spiralgen()

Run the code above in your browser using DataLab