Z1d: Creating design matrix with 1d wavelet basis functions as...

Description Usage Arguments Value Examples

View source: R/OneDimensional.R

Description

Takes in the locations at which data is observed and creates a design matrix where each column corresponds to a given wavelet basis function evaluated at the observed data locations. This function is taken from the code provided in Wand and Ormerod (2011).

Usage

1
Z1d(x, numLevels = 6, filterNumber = 5, resolution = 16384)

Arguments

x

Vector of locations at which we observe data

numLevels

Number of wavelet levels. Should be an integer between 2 and 10

filterNumber

Which Daubechies wavelet filter is desired. Default value is 5

resolution

The number of points in the grid used to evaluate wavelet basis functions. Should be a large integer that is a power of 2

Value

An N x K matrix containing wavelet basis functions evaluated at observed data

Examples

1
2
3
4
5
6
n <- 1000
x <- runif(n)

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

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