leakage: Spectral leakage

Description Usage Arguments Value Examples

View source: R/ttools.R

Description

Evaluate side-lobe leakage for a given windowing function

Usage

1

Arguments

w

windowing function coefficients

Value

log(modulus) of the padded fft

Examples

1
2
3
4
s <- rep( 1, 32 )
S <- leakage( s )
f <- seq( 0, to = 0.5, length.out = length( S ) )
plot( f, S, type = "l", xlab = "Frequency", ylab = "log(Mod(S))" )

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