Learn R Programming

spate (version 1.7.5)

spate.init: Constructor for 'spateFT' object which are used for the two-dimensional Fourier transform.

Description

Auxilary function for constructing 'spateFT' objects which are used for the two-dimensional Fourier transform.

Usage

spate.init(n,T,NF=n*n)

Value

A 'spateFT' object. This is a list with

wave

a matrix containing the wavenumbers

indCos

a vector indicating the position of the cosine terms (excluding the frist 'ns')

ns

an integer indicating the number of cosine-only terms

indFFT

a list of indices used for the conversion between the complex FFT and the real Fourier transform.

n

number of points on each axis

T

number of points in time

Arguments

n

Number of points on each axis. n x n is the total number of spatial points.

T

Number of temporal points.

NF

This integer specifies the number of Fourier functions. If NF<n*n, dimension reduction is obtained. In this case, Fourier functions with wavenumbers closest to the origin (0,0) are first included. If a given 'NF' implies a basis with anisotropy, i.e., higher frequencies in one direction than in another, this is automatically corrected by using the next higher integer NF' such that the basis has the same resolution in all directions.

Author

Fabio Sigrist