# HG changeset patch # User Rik # Date 1306867838 25200 # Node ID e09860581a7c9d1b6225ced387a19c13ceaf9a68 # Parent abc71e3148ac886e8e86812b4e126154bb6f6e64 unifpdf.m: Bug fix to include limits of range [A,B] in distribution. * unifpdf.m: Bug fix to include limits of range [A,B] in distribution. diff -r abc71e3148ac -r e09860581a7c scripts/statistics/distributions/unifpdf.m --- a/scripts/statistics/distributions/unifpdf.m Thu May 26 12:40:13 2011 -0700 +++ b/scripts/statistics/distributions/unifpdf.m Tue May 31 11:50:38 2011 -0700 @@ -53,7 +53,7 @@ pdf(k) = NaN; endif - k = find ((x > a) & (x < b)); + k = find ((x >= a) & (x <= b)); if (any (k)) if (isscalar (a) && isscalar(b)) pdf(k) = 1 ./ (b - a);