sinewave: Sine wave

View source: R/sinewave.R

sinewaveR 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")


gsignal documentation built on Sept. 12, 2024, 6:27 a.m.