sinewave {gsignal}R Documentation

Sine wave

Description

Generate a discrete sine wave.

Usage

sinewave(m, n = m, d = 0)

Arguments

m

desired length of the generated series, specified as a positive integer.

n

rate, of the generated series, specified as a positive integer. Default: m.

d

delay, specified as a positive integer. Default: 0.

Value

Sine wave, returned as a vector of length m.

Author(s)

Friedrich Leisch.
Conversion to R by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com.

Examples

plot(sinewave(100, 10), type = "l")


[Package gsignal version 0.3-5 Index]