Join us for
RADAR: AI Edition

simts (version 0.2.2)

gen_ar1: Generate an Autoregressive Order 1 ( AR(1) ) sequence

Description

Generate an Autoregressive Order 1 sequence given ϕ and σ2.

Usage

gen_ar1(N, phi = 0.3, sigma2 = 1)

Value

A vec containing the AR(1) process.

Arguments

N

An unsigned integer for signal length.

phi

A double that contains autocorrection.

sigma2

A double that contains process variance.

Process Definition

The Autoregressive order 1 (AR1) process with non-zero parameter ϕ(1,+1) and σ2IR2. This process is defined as: Xt=ϕ1Xt1+εt, where εtiidN(0,σ2) AR(1) processes are sometimes used as an approximation for Bias Instability noises.

Generation Algorithm

The function first generates a vector of White Noise with length N+1 using gen_wn and then obtains the autoregressive values under the above process definition.

The X0 (first value of Xt) is discarded.

Details

The function implements a way to generate the AR(1)'s xt values without calling the general ARMA function. Thus, the function is able to generate values much faster than gen_arma.