Fixed random bug of MC identification test, occurring when there is no solution at the very first iteration of the MC loop.

(cherry picked from commit 906bf8e02feb8370153bc6407bf95d2592be3cc2)
time-shift
Marco Ratto 2012-07-15 22:15:06 +02:00
parent 1732db842f
commit 80a9ac90f0
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ if iload <=0,
end
[dum1, ideJ, ideH, ideGP, dum2 , info] = ...
identification_analysis(params,indx,indexo,options_MC,dataset_, prior_exist, name_tex,0);
if iteration==0,
if iteration==0 && info(1)==0,
MAX_tau = min(SampleSize,ceil(MaxNumberOfBytes/(size(ideH.siH,1)*nparam)/8));
stoH = zeros([size(ideH.siH,1),nparam,MAX_tau]);
stoJJ = zeros([size(ideJ.siJ,1),nparam,MAX_tau]);