visuthresh2.m
来自「上課所教所有matlab 小波去燥的教程!~非常適合各位的參考!非常好喔!」· M 代码 · 共 28 行
M
28 行
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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?