H.omega.cos.2D {SSsimple}R Documentation

Bases Transformation

Description

Create H as cosine bases expansion over R^2

Usage

H.omega.cos.2D(x, y, u.x, u.y, phs.x, phs.y)

Arguments

x

A vector of locations on x of length n.

y

A vector of locations on y of length n.

u.x

A vector of frequencies on x.

u.y

A vector of frequencies on y.

phs.x

A vector of phase shifts on x. Should be same length as u.x.

phs.y

A vector of phase shifts on y. Should be same length as u.y.

Value

An n x d matrix, with d = length(u.x) * length(u.y).

See Also

H.omega.sincos

Examples

x <- rep( I(0:10) / 10,   11 )
y <- rep( I(0:10) / 10,   each=11 )
u.x <- I(1:2) * pi
u.y <- I(1:2) * pi
H <- H.omega.cos.2D(x, y, u.x, u.y, c(0,0), c(0,0))

b <- rep(1, ncol(H))

z <- H %*% b

plot(x, y, cex=z-min(z))


[Package SSsimple version 0.6.6 Index]