ar1_sim_cpp: Simulate from a stationary Gaussian AR(1) process.

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Simulate from a stationary Gaussian AR(1) process at n consecutive time points.

Usage

1
ar1_sim_cpp(n, rho, sigma)

Arguments

n

The number of timepoints to simulate for.

rho

A real number strictly less than 1 in absolute value.

sigma

A positive real number.

Value

A vector of length n with the process values.


irregulAR1 documentation built on May 2, 2019, 8:49 a.m.