resample_fft_parallel: Resample an fft using varying numbers of sine tapers

Description Usage Arguments Details See Also Examples

View source: R/RcppExports.R

Description

Produce an un-normalized psd based on an fft and a vector of optimal sine tapers

Usage

1
2
resample_fft_parallel(fftz, tapers, verbose = TRUE, dbl = TRUE,
  tapcap = 10000L)

Arguments

fftz

complex; a matrix representing the dual-length fft; see also the dbl argument

tapers

integer; a vector of tapers

verbose

logical; should messages be given?

dbl

logical; should the code assume fftz is dual-length or single-length?

tapcap

integer; the maximum number of tapers which can be applied; note that the length is automatically limited by the length of the series.

Details

To produce a psd estimate with our adaptive spectrum estimation method, we need only make one fft calculation initially and then apply the weighting factors given by parabolic_weights_rcpp, which this function does.

See Also

riedsid

Examples

1
2
3
fftz <- complex(real=1:8, imaginary = 1:8)
taps <- 1:4
try(resample_fft_rcpp2(fftz, taps))

jkennel/waterlevel documentation built on Dec. 1, 2019, 6:24 p.m.