Skip to content

Commit

Permalink
[#162] fix index error in PoissonDistribution.plot() (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecky-l authored Sep 23, 2024
1 parent 3b3e90c commit aeaddf4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions inst/dist_obj/private/__plot__.m
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@
endif

## Compute the stairs for data
[yy, xx, n, ~, eid] = cdfcalc (x);
[yy, xx, ~, ~, eid] = cdfcalc (x);
n = length (xx);
## Create vectors for plotting
nidx = reshape (repmat (1:n, 2, 1), 2*n, 1);
xCDF = [-Inf; xx(nidx); Inf];
Expand Down Expand Up @@ -474,5 +475,3 @@
hold off;

endfunction


0 comments on commit aeaddf4

Please sign in to comment.