Skip to content

Commit

Permalink
fix setup_Stats
Browse files Browse the repository at this point in the history
  • Loading branch information
tztsai committed Oct 17, 2024
1 parent 86931f8 commit 00420eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
Cp2 = setup_Cp(nSeasons, nStrataX, nBoot);
Cp3 = setup_Cp(nSeasons, nStrataX, nBoot);

Stats2 = setup_Stats(nBoot, nSeasons, nStrataX, 0);
Stats3 = setup_Stats(nBoot, nSeasons, nStrataX, 0);
Stats2 = setup_Stats(nBoot, nSeasons, nStrataX);
Stats3 = setup_Stats(nBoot, nSeasons, nStrataX);

% by alessio
%disp(' ');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
function [Stats] = setup_Stats(nBoot, nSeasons, nStrataX, varargin)
function [Stats] = setup_Stats(nBoot, nSeasons, nStrataX)

StatsMT = generate_statsMT();

Stats=StatsMT;
for iBoot=1:nBoot;
for iSeason=1:nSeasons;
for iStrata=1:nStrataX;
Stats(iSeason,iStrata,iBoot)=StatsMT;
end;
end;
end;
if size(varargin)>0;
Stats = jsonencode(Stats);
end

for iBoot=1:nBoot;
for iSeason=1:nSeasons;
for iStrata=1:nStrataX;
Stats(iSeason,iStrata,iBoot)=StatsMT;
end;
end;
end;
end

0 comments on commit 00420eb

Please sign in to comment.