gen_wn: Generate a Gaussian White Noise Process (WN(sigma^2))

View source: R/RcppExports.R

gen_wnR Documentation

Generate a Gaussian White Noise Process (WN(sigma^2))

Description

Simulates a Gaussian White Noise Process with variance parameter sigma^2.

Usage

gen_wn(N, sigma2 = 1)

Arguments

N

An integer for signal length.

sigma2

A double that contains process variance.

Value

wn A vec containing the white noise.

Process Definition

Gaussian White Noise (WN) with parameter sigma^2 in R^{+}. This process is defined as X[t] ~ N(0,sigma^2) and is sometimes referred to as Angle (Velocity) Random Walk.

Generation Algorithm

To generate the Gaussian White Noise (WN) process, we first obtain the standard deviation from the variance by taking a square root. Then, we sample N times from a N(0,sigma^2) distribution.

Examples

gen_wn(10, 1.5)

schoi355/gmwm documentation built on April 11, 2022, 1:21 a.m.