Mercurial > octave-nkf
diff scripts/statistics/distributions/hygeinv.m @ 11094:add5beb3b845
avoid use of | and & in IF conditions in statistics distribution functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 09 Oct 2010 11:55:51 -0400 |
parents | 3306cfcb856e |
children | 1740012184f9 |
line wrap: on
line diff
--- a/scripts/statistics/distributions/hygeinv.m Sat Oct 09 11:42:22 2010 -0400 +++ b/scripts/statistics/distributions/hygeinv.m Sat Oct 09 11:55:51 2010 -0400 @@ -39,8 +39,8 @@ error ("hygeinv: t, m and n must all be positive integers"); endif - if ((t < 0) | (m < 0) | (n <= 0) | (t != round (t)) | - (m != round (m)) | (n != round (n)) | (m > t) | (n > t)) + if (t < 0 || m < 0 || n <= 0 || t != round (t) || m != round (m) + || n != round (n) || m > t || n > t) inv = NaN (size (x)) else inv = discrete_inv (x, 0 : n, hygepdf (0 : n, t, m, n));