Skip to content

Commit

Permalink
add torelarnce to BISTs
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0m1th3as committed Feb 28, 2024
1 parent d4f8e0d commit 88bcbe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/dist_obj/PiecewiseLinearDistribution.m
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,9 @@ function checkparams (x, Fx)
%!assert (icdf (t, [-1, 0.4:0.2:1, NaN]), [NA, 139.26, 162.5, 173.99, 180, NA], 1e-2);
%!assert (iqr (pd), 50.0833, 1e-4);
%!assert (iqr (t), 36.8077, 1e-4);
%!assert (mean (pd), 153.61);
%!assert (mean (pd), 153.61, 1e-10);
#%!assert (mean (t), 0, eps);
%!assert (median (pd), 142);
%!assert (median (pd), 142, 1e-10);
%!assert (median (t), 141.9462, 1e-4);
%!assert (pdf (pd, [120, 130, 140, 150, 200]), [0.0133, 0.0240, 0.0186, 0.0024, 0.0046], 1e-4);
%!assert (pdf (t, [120, 130, 140, 150, 200]), [0, 0.0482, 0.0373, 0.0048, 0], 1e-4);
Expand Down

0 comments on commit 88bcbe3

Please sign in to comment.