crcrec {Rwave} | R Documentation |
Crazy Climbers Reconstruction by Penalization
Description
Reconstructs a real valued signal from the output of crc
(wavelet case) by minimizing an appropriate quadratic form.
Usage
crcrec(siginput, inputwt, beemap, noct, nvoice, compr, minnbnodes=2,
w0=2 * pi, bstep=5, ptile=0.01, epsilon=0, fast=FALSE, para=5, real=FALSE,
plot=2)
Arguments
siginput |
original signal. |
inputwt |
wavelet transform. |
beemap |
occupation measure, output of |
noct |
number of octaves. |
nvoice |
number of voices per octave. |
compr |
compression rate for sampling the ridges. |
minnbnodes |
minimal number of points per ridge. |
w0 |
center frequency of the wavelet. |
bstep |
size (in the time direction) of the steps for chaining. |
ptile |
relative threshold of occupation measure. |
epsilon |
constant in front of the smoothness term in penalty function. |
fast |
if set to TRUE, uses trapezoidal rule to evaluate $Q_2$. |
para |
scale parameter for extrapolating the ridges. |
real |
if set to TRUE, uses only real constraints. |
plot |
1: displays signal,components,and reconstruction one after another. 2: displays signal, components and reconstruction. |
Details
When ptile is high, boundary effects may appeare. para controls extrapolation of the ridge.
Value
Returns a structure containing the following elements:
rec |
reconstructed signal. |
ordered |
image of the ridges (with different colors). |
comp |
2D array containing the signals reconstructed from ridges. |