VisuThresh2.m
资源名称:小波去噪.rar [点击查看]
上传用户:sla11nk8
上传日期:2013-03-09
资源大小:21k
文件大小:1k
源码类别:
其他
开发平台:
Matlab
- function [x] = VisuThresh2(y,type)
- %
- %%%%%%%%It's My Own Function!!!
- %
- % VisuThresh2-- Visually calibrated Adaptive Smoothing
- % Usage
- % x = VisuThresh2(y,type)
- % Inputs
- % y 2-D Signal upon which to perform visually calibrated Adaptive Smoothing
- % type Type of thresholding, either 'Soft' (default) or 'Hard'
- % Outputs
- % x Result
- %
- % References
- % ``Ideal Spatial Adaptation via Wavelet Shrinkage''
- % by D.L. Donoho and I.M. Johnstone.
- %
- if nargin < 2,
- type = 'Soft';
- end
- thr = 2*sqrt(log(length(y))) ;
- %
- if strcmp(type,'Hard'),
- x = HardThresh(y,thr);
- else
- x = SoftThresh(y,thr);
- end