trishrink1.m
资源名称:小波去噪.rar [点击查看]
上传用户:sla11nk8
上传日期:2013-03-09
资源大小:21k
文件大小:0k
源码类别:
其他
开发平台:
Matlab
- function [w1] = trishrink1(y1,y2,y3,T)
- % Bivariate Shrinkage Function
- % Usage :
- % [w1] = trishrink1(y1,y2,T)
- % INPUT :
- % y1 - a noisy coefficient value
- % y2 - the corresponding parent value
- % T - threshold value
- % OUTPUT :
- % w1 - the denoised coefficient
- R = sqrt(abs(y1).^2 + abs(y2).^2+abs(y3).^2);
- R = R - T;
- R = R .* (R > 0);
- w1 = y1 .* R./(R+T);