fftN: Zero Padded 1D Fourier transform

Description Usage Arguments Value Examples

Description

This function is a simple wrapper of Armadillo's fft function. It allows for fast and easy zero padding of a signal.

Usage

1
fftN(X,N=NULL)

Arguments

X

X a numeric vector or matrix

N

Length of zero padded signal. If NULL the function will automatically pad sufficiently for a fast transform.

Value

returns the Fourier transform of the signal.

Examples

1
2
x<-matrix(rnorm(101*1000),nrow = 101,ncol = 1000)
system.time(test1<-fftN(x))

tierneytim/FIACH documentation built on May 31, 2019, 1:45 p.m.