longmemo (version 1.1-2)

per: Simple Periodogram Estimate

Description

Simply estimate the periodogram via the Fast Fourier Transform.

Usage

per(z)

Arguments

z

numeric vector with the series to compute the periodogram from.

Value

numeric vector of length \(1 + floor(n/2)\) where n = length(z).

Details

This is basically the same as spec.pgram(z, fast = FALSE, detrend = FALSE, taper = 0) $ spec, and not really recommended to use --- exactly for the reason that spec.pgram has the defaults differently, fast = TRUE, detrend = TRUE, taper = 0.1, see that help page.

See Also

a more versatile periodogram estimate by spec.pgram.

Examples

Run this code
# NOT RUN {
 data(NileMin)
 plot(10*log10(per(NileMin)), type='l')
# }

Run the code above in your browser using DataLab