trishrink1.m
Upload User: sla11nk8
Upload Date: 2013-03-09
Package Size: 21k
Code Size: 0k
Category:

Other systems

Development Platform:

Matlab

  1. function [w1] = trishrink1(y1,y2,y3,T)
  2. % Bivariate Shrinkage Function
  3. % Usage :
  4. %      [w1] = trishrink1(y1,y2,T)
  5. % INPUT :
  6. %      y1 - a noisy coefficient value
  7. %      y2 - the corresponding parent value
  8. %      T  - threshold value
  9. % OUTPUT :
  10. %      w1 - the denoised coefficient
  11. R  = sqrt(abs(y1).^2 + abs(y2).^2+abs(y3).^2);
  12. R = R - T;
  13. R  = R .* (R > 0);
  14. w1 = y1 .* R./(R+T);