Learn R Programming

statcomp (version 0.0.1.1000)

powernoise: A function to generate k-noise

Description

Generates samples of power law noise.

Usage

powernoise(k, N)

Arguments

k
Power law scaling exponent
N
number of samples to generate

Value

A named list with three entries is returned. x - N x 1 vector of power law samples

Details

Generates samples of power law noise. The power spectrum of the signal scales as f^(-k). The R function uses fft(), similarly to the knoise_fft Matlab function.

Examples

Run this code
powernoise_series = powernoise(k=2, N=10000)

Run the code above in your browser using DataLab