2.11.2.9 wtsmooth(Pro)

Menu Information

Analysis: Signal Processing: Wavelet: Smooth

Brief Information

Smooth signal by cutting off detailed coefficients

Additional Information

This feature is for OriginPro only.

Command Line Usage

1. wtsmooth iy:=Col(2);

2. wtsmooth iy:=Col(2) type:=db2;

3. wtsmooth iy:=Col(2) ext:=pad0;

4. wtsmooth iy:=Col(2) cutoff:=95;

5. wtsmooth iy:= Col(2) oy:=(Col(3),Col(4)) cutoff:=85;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input iy

Input

XYRange

<active>

Specify the input signal

Wavelet Type type

Input

int

haar

Specify the wavelet type used in wavelet decomposition Option list

  • haar:Haar
    Haar wavelet
  • db 2:DB2
    Daubechies wavelet (N=4
  • db 3:DB3
    Daubechies wavelet (N=6)
  • db 4:DB4
    Daubechies wavelet (N=8)
  • db 5:DB5
    Daubechies wavelet (N=10)
  • db 6:DB6
    Daubechies wavelet (N=12)
  • db 7:DB7
    Daubechies wavelet (N=14)
  • db 8:DB8
    Daubechies wavelet (N=16)
  • db 9:DB9
    Daubechies wavelet (N=18)
  • db 10:DB10
    Daubechies wavelet (N=20)
  • b11:Bior1.1
    Biorthogonal (Nr=1, Nd=1)
  • b13:Bior1.3
    Biorthogonal (Nr=1, Nd=3)
  • b15:Bior1.5
    Biorthogonal (Nr=1, Nd=5)
  • b22:Bior2.2
    Biorthogonal (Nr=2, Nd=2)
  • b24:Bior2.4
    Biorthogonal (Nr=2, Nd=4)
  • b26:Bior2.6
    Biorthogonal (Nr=2, Nd=6)
  • b28:Bior2.8
    Biorthogonal (Nr=2, Nd=8)
  • b31:Bior3.1
    Biorthogonal (Nr=3, Nd=1)
  • b33:Bior3.3
    Biorthogonal (Nr=3 Nd=3)
  • b35:Bior3.5
    Biorthogonal (Nr=3, Nd=5)
  • b37:Bior3.7
    Biorthogonal (Nr=3, Nd=7)
Extension Mode ext

Input

int

periodic

Specify the extension mode used in wavelet decomposition

Option list

  • periodic:Periodic
    The input signal will be viewed as periodic.
  • pad0:Zero -padded
    The data points outside the input range will be viewed as zeroes.
Output oy

Output

XYRange

<new>

Specify the output range See the syntax here.

Cutoff (%) cutoff

Input

double

20

Specify the percentage of detail coefficients to be cut off


Examples

1. To perform wavelet smoothing using default settings, to XY data in columns 1, 2 of the active worksheet, by cutting off 90% of the detail coefficients, use the script command:

wtsmooth iy:=(Col(1),Col(2)) cutoff:=90

2. To perform default wavelet smoothing to active data plot in graph, activate the plot then use the script command:

wtsmooth %c

3. To perform wavelet smoothing to data using a pre-saved smoothing theme file called Mytheme type in the Command Window:

wtsmooth -t mytheme


More Information

For more information, please refer to our User Guide.

Related X-Functions

dwt, idwt, smooth


Keywords:wavelet, remove