fftnneg: Non-negative frequencies of FFT

Description Usage Arguments Value Examples

View source: R/ttools.R

Description

Compute non-negative frequency coefficients of fft

Usage

1

Arguments

s

vector of time series samples

Value

complex valued fft of s at non-negative frequencies, ordered DC to Nyquist

Examples

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

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