make.signal2 {adlift}R Documentation

make.signal2

Description

This function computes signal function values based on a grid input.

Usage

make.signal2(name, x, snr = Inf, ...)

Arguments

name a character string of the test signal to create.
x a vector of gridpoints.
snr
...

Details

This function is based on the make.signal function included in the S-Plus wavelets module, except that the x vector can be irregular. As well as the signals included for the original version (e.g. the Donoho/Johnstone test signals), a piecewise polynomial can be sampled.

Value

z the signal function values.

Note

The test signals have domain [0,1], so the grid vector x must have values within this interval.

Author(s)

Matt Nunes (matt.nunes@bristol.ac.uk), Marina Popa (Marina.Popa@bristol.ac.uk)

Examples

#create grid vector
#
xgrid<-rnorm(50)
xgrid
#
pp<-make.signal2("ppoly",x=xgrid)
#
#piecewise polynomial data vector 
#
plot(sort(xgrid),pp[order(xgrid)],type="l")
# 

[Package adlift version 0.9-6 Index]