Skip to content

Commit

Permalink
Bug occurring when nsamp is a two element array, indicating the sampl…
Browse files Browse the repository at this point in the history
…es at the first LS and at subsequent LS. The default nsamp was always used.
  • Loading branch information
DomenicoPerrottaJRC committed Jan 11, 2025
1 parent fc0d7d1 commit 2a4c0fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions toolbox/regression/LTSts.m
Original file line number Diff line number Diff line change
Expand Up @@ -1419,8 +1419,13 @@
nsampsubsequentsteps=1;
SmallSampleCor=1;
else
nsamp=options.nsamp; % Number of subsets to extract
nsampsubsequentsteps=round(nsamp/2);
if isscalar(options.nsamp)
nsamp=options.nsamp; % Number of subsets to extract in first LS
nsampsubsequentsteps=round(nsamp/2); % Number of subsets to extract in subsequesnt LS
elseif numel(options.nsamp) == 2
nsamp=options.nsamp(1);
nsampsubsequentsteps=options.nsamp(2);
end
SmallSampleCor=options.SmallSampleCor; % small sample correction factor
end

Expand Down

0 comments on commit 2a4c0fb

Please sign in to comment.