Skip to content

Commit

Permalink
Fixes drawMultiNest compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenNneji committed Nov 28, 2023
1 parent cb09210 commit e0b368a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions minimisers/NS/drawMultiNest.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
% find the ellipsoid from which to draw a new point
rval = rand;

for k=1:K
k0 = 1;
for k = 1:K
k0 = k;
if rval < fracvol(k)
continue
else
break
end
end
k0 = k;

% extract bounding matrix and centroid for that ellipsoid
B = Bs((k0-1)*ndims+1:k0*ndims,:);
Expand Down

0 comments on commit e0b368a

Please sign in to comment.