Generate an Autoregressive Order 1 sequence given
gen_ar1(N, phi = 0.3, sigma2 = 1)
A vec
containing the AR(1) process.
An unsigned integer
for signal length.
A double
that contains autocorrection.
A double
that contains process variance.
The Autoregressive order 1 (AR1) process with non-zero parameter
The function first generates a vector of White Noise with length gen_wn
and then obtains the
autoregressive values under the above process definition.
The
The function implements a way to generate the AR(1)'s gen_arma
.