HyperParamSearch.m 436 B

1234567891011121314151617
  1. clear all
  2. close all
  3. clc
  4. %%
  5. alpha = ;
  6. tf = 5000;
  7. F = @(theta) gamcdf(tf, alpha, sqrt(theta)) - 0.997;
  8. Options_fsolve = optimset('TolX',1e-12','TolFun',1e-12,'MaxIter',1000,...
  9. 'MaxFunEvals',10000,'FunValCheck ','on' ,'LargeScale','off',...
  10. 'Algorithm','trust-region-dogleg','Display','iter',...
  11. 'PrecondBandWidth',1,'UseParallel',true);
  12. theta = fsolve(F, tf/(6*alpha), Options_fsolve);
  13. %%
  14. Sigma2 = alpha * theta;
  15. Sigma2/tf