Skip to content

Commit 0c134c0

Browse files
committed
'swa alphob 0 issue'
Merge branch 'dev'
2 parents 530c017 + 68f3ed5 commit 0c134c0

File tree

2 files changed

+3
-53
lines changed

2 files changed

+3
-53
lines changed

code/package/swa/specswafdr.m

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -363,55 +363,7 @@
363363
end
364364

365365
warndlg('The data are not uniformly spaced')
366-
% ctlim=0;
367-
368-
% allow users type three times
369-
370-
% while ctlim < 3
371-
%
372-
% ctlim=fix(ctlim+1);
373-
%
374-
% if(ctlim > 5)
375-
% [writeErrFlag]=writeFmt(1,[]);
376-
% [writeErrFlag]=writeFmt(1,['%c'],''' *** No response registered ***''');
377-
% [writeErrFlag]=writeFmt(1,['%c'],''' Stopping...''');
378-
% end
379-
%
380-
% [writeErrFlag]=writeFmt(1,[]);
381-
% [writeErrFlag]=writeFmt(1,[format_22],'ndata');
382-
% [writeErrFlag]=writeFmt(1,[]);
383-
% [writeErrFlag]=writeFmt(1,['%c'],''' Do you want to stop the program here?''');
384-
% [writeErrFlag]=writeFmt(1,['%c'],''' (e.g. if the no. of points is incorrect)''');
385-
%
386-
% if(nirr == 1)
387-
% [writeErrFlag]=writeFmt(1,['%c'],''' (or the data are meant to be uniformly spaced)''');
388-
% end
389-
%
390-
% [writeErrFlag]=writeFmt(1,['%c'],''' Proceed = P''');
391-
% [writeErrFlag]=writeFmt(1,['%c'],''' Stop the program = S''');
392-
393-
%lmn=strAssign(lmn,[],[],input('','s'))
394-
% lmn = input('','s');
395-
%
396-
% if(strcmp(deblank(lmn),deblank('P')) || strcmp(deblank(lmn),deblank('p')))
397-
% tempBreak=1;
398-
% break;
399-
% end
400-
%
401-
% if(strcmp(deblank(lmn),deblank('S'))||strcmp(deblank(lmn),deblank('s')))
402-
% return
403-
% end
404-
%
405-
% if(ios ~= 0)
406-
%
407-
% [writeErrFlag]=writeFmt(1,[]);
408-
% [writeErrFlag]=writeFmt(1,['%c'],''' *** Enter P or S ***''');
409-
%
410-
% continue;
411-
%
412-
% end
413-
% end
414-
366+
415367
else
416368

417369
if(tintmax ~= tintmin)
@@ -987,8 +939,7 @@
987939

988940
% Step 1 of Miller et al. (2001): Sort probabilities observed
989941
% (smallest to largest alpha).
990-
%alphsort = alphob;
991-
alphsort = [0;alphob]; % debug, add 0
942+
alphsort = alphob;
992943
alphsort = hpsort(alphsort);
993944

994945
% Allow for correlation of spectral estimates by setting CN.

code/package/swa/spectralswafdr.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@
194194

195195
% Step 1 of Miller et al. (2001): Sort probabilities observed
196196
% (smallest to largest alpha).
197-
%alphsort = alphob;
198-
alphsort = [0;alphob]; % debug, add 0
197+
alphsort = alphob;
199198
alphsort = hpsort(alphsort);
200199

201200
% Allow for correlation of spectral estimates by setting CN.

0 commit comments

Comments
 (0)