H.omega.cos.2D: Bases Transformation

Description Usage Arguments Value See Also Examples

View source: R/H.omega.cos.2D.R

Description

Create H as cosine bases expansion over R^2

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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))

SSsimple documentation built on Dec. 7, 2019, 9:06 a.m.