Z2d: Creating design matrix with 2d wavelet basis functions as...

Description Usage Arguments Value Examples

View source: R/TwoDimensional.R

Description

Takes in two matrices: The N x K matrices generated from 1d wavelet basis functions in each direction

Usage

1
Z2d(Zx, Zy)

Arguments

Zx

An N x K matrix where the columns are the 1d wavelet basis functions in the X direction evaluated at the N locations of the data

Zy

An N x K matrix where the columns are the 1d wavelet basis functions in the Y direction evaluated at the N locations of the data

Value

An N x K^2 matrix containing products of wavelet basis functions

Examples

1
2
3
4
5
6
7
8
9
n <- 1000
x <- runif(n)
y <- runif(n)

numLevels <- 3
k = 2^numLevels - 1
Zx <- cbind(rep(1, n), ZDaub(x, numLevels=numLevels))
Zy <- cbind(rep(1, n), ZDaub(y, numLevels=numLevels))
Zxy <- Z2d(Zx,Zy)

jantonelli111/Irregular2dWavelets documentation built on May 18, 2019, 2:39 p.m.