noise_powerlaw | R Documentation |
Generate noise series with power law scaling exponent
noise_powerlaw(
y = NULL,
alpha = -1,
N = 512,
standardise = FALSE,
randomPower = FALSE,
seed = NA
)
y |
Time series to use as a 'model'. If specified, |
alpha |
The log-log spectral slope, the scaling exponent. Use |
N |
Length of the time series |
standardise |
Forces scaling of the output to the range |
randomPower |
If |
seed |
Provide an integer number to set the seed for the random number generator in order to get reproducible results. If |
Time series with a power law of alpha.
This R code was adapted from a Matlab script called powernoise.m
by Max Little. The script contained the following commented text:
With no option strings specified, the power spectrum is
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.