pspec: Power spectrum

Description Usage Arguments Value Examples

View source: R/ttools.R

Description

Direct FFT computation of time series power spectrum

Usage

1
pspec(s)

Arguments

s

vector of time series samples

Value

Power of non-negative frequencies order DC to Nyquist.

Examples

1
2
3
4
s <- sin( 2 * pi * ( 1:256 ) * 0.1 )
PS <- pspec( s )
f <- seq( 0, 0.5, length.out = length( PS ) )
plot( f, PS, type = "l", xlab = "Frequency", ylab = "Power" )

jrevenaugh/TSAUMN documentation built on Nov. 8, 2019, 2:20 p.m.