GenSeries: Generates An AR1 Time Series

Description Usage Arguments Value Author(s) Examples

Description

This function generates AR1 processes containing n data points, where alpha is the autocorrelation at lag 1, and the mean and standard deviation are specified by the mean and std arguments.

Usage

1
GenSeries(n, alpha, mean, std)

Arguments

n

Length of the timeseries to be generated.

alpha

Autocorrelation at lag 1.

mean

Mean of the data.

std

Standard deviation of the data.

Value

AR1 timeseries

Author(s)

History:
0.1 - 2012-04 (L. Auger, ludovic.auger@meteo.fr) - Original code
1.0 - 2012-04 (N. Manubens, nicolau.manubens at ic3.cat) - Formatting to CRAN

Examples

1
2
series <- GenSeries(1000, 0.35, 2, 1)
plot(series, type = 'l')


Search within the s2dverification package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.