Last chance! 50% off unlimited learning
Sale ends in
Evaluates the Fourier basis functions
on a
fourierbasis(x, k, win = boxx(rep(list(0:1), ncol(k))))
fourierbasisraw(x, k, boxlengths)
An m
by n
matrix of complex values.
Coordinates.
A data.frame
or matrix with
Frequencies.
A data.frame
or matrix with
window (of class "owin"
, "box3"
or "boxx"
)
giving the
numeric giving the side lengths of the box domain of the Fourier functions.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au
Rolf Turner r.turner@auckland.ac.nz
and Ege Rubak rubak@math.aau.dk
The result is an x
are contained in the given box.
Actually the box is only used to determine the side lengths and volume of the
domain for normalization.
The stripped down faster version fourierbasisraw
doesn't do checking or
conversion of arguments and requires x
and k
to be matrices.
## 27 rows of three dimensional Fourier frequencies:
k <- expand.grid(-1:1,-1:1, -1:1)
## Two random points in the three dimensional unit box:
x <- rbind(runif(3),runif(3))
## 27 by 2 resulting matrix:
v <- fourierbasis(x, k)
head(v)
Run the code above in your browser using DataLab