⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 evalfix.m

📁 老外写的小波变换的工具箱
💻 M
字号:
% EvalFix -- Performance of minimax shrinkage for varying sparsity
% parameters C and eps
if ~exist('NProb'),
   NProb = input('Size of Problem');
end
if ~exist('M'),
   M = input('Number of Repetitions');
end
disp('in EvalFix ...')
disp(sprintf('doing %g Monte Carlo repetitions at N=%g',M,N))
disp('this could take a while ...')
FixRecords =  zeros( M*13*3 , 3);
MedFix =  zeros( 13*3, 3);
v = zeros(1,M); rcount = 1; scount = 1;
for C = [3 5 7],
   for eps = [.005 .01 .02 .04 .06 .08 .10 .12 .14 .16 .18 .20 .25],
      x = zeros(1,NProb);
      k = floor(eps*NProb);
      x(1:k) = zeros(1,k)+C;
      for m=1:M,
         y = x + WhiteNoise(x);
         xhat = MinMaxThresh(y);
         loss = rms(xhat-x);  % root mean square!
         v(m) = loss;
         FixRecords(rcount,:) = [C eps loss];  rcount = rcount +1;
		 if rem(rcount,10)==0, fprintf('.'), end 
       end
       MedFix(scount,:) = [C eps rms(v)]; scount = scount +1;
    end
end
plot(FixRecords(:,2),FixRecords(:,3).^2,'.')
title(' (b) Fixed Threshold')
xlabel('Epsilon')
ylabel('MSE')
    
    
  %%  Part of Wavelab Version 850%  Built Tue Jan  3 13:20:41 EST 2006%  This is Copyrighted Material%  For Copying permissions see COPYING.m%  Comments? e-mail wavelab@stat.stanford.edu 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -