Learn R Programming

FIACH (version 0.1.2)

fftN: Zero Padded 1D Fourier transform

Description

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

Usage

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

Run this code
x<-matrix(rnorm(101*1000),nrow = 101,ncol = 1000)
system.time(test1<-fftN(x))

Run the code above in your browser using DataLab