Learn R Programming

rwt (version 1.0.0)

makesig: Make Signal

Description

Creates artificial test signal identical to the standard test signals proposed and used by D. Donoho and I. Johnstone in WaveLab (a MATLAB toolbox developed by Donoho et al. the statistics department at Stanford University).

Usage

makesig(sigName, N)

Arguments

sigName
character string specifying name of desired signal. Valid values are: l{ SIGNAL.ALL SIGNAL.HEAVI.SINE SIGNAL.BUMPS SIGNAL.BLOCKS SIGNAL.DOPPLER SIGNAL.RAMP SIGNAL.CUSP SIGNAL.SING SIGNAL.HI.SINE SIGNAL.LO.SINE SIGNAL.LIN.C
N
numeric scalar specifying length in samples of desired signal (512 by default)

Value

  • Returns a list with components:
  • xvector (or matrix) of test signals
  • Nlength of signal returned

Examples

Run this code
ret.sig <- makesig(SIGNAL.DOPPLER, 32)

Run the code above in your browser using DataLab