Generates temporally autocorrelated random numbers with a mean,
standard deviation, and autocorrelation you specify.
Usage
colored_noise(timesteps, mean, sd, phi)
Value
A vector of temporally autocorrelated random numbers.
Arguments
timesteps
The number of temporally autocorrelated random numbers (one
per timestep) you want.
mean
The mean of the temporally autocorrelated random numbers.
sd
The standard deviation of the temporally autocorrelated random
numbers.
phi
The temporal autocorrelation. 0 is white noise (uncorrelated),
positive values are red noise (directly correlated) and negative values are blue
noise (inversely correlated).