diff scripts/statistics/distributions/wblrnd.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 be55736a0783
children 9cb5c0b7b43b
line wrap: on
line diff
--- a/scripts/statistics/distributions/wblrnd.m	Sat Oct 09 11:42:22 2010 -0400
+++ b/scripts/statistics/distributions/wblrnd.m	Sat Oct 09 11:55:51 2010 -0400
@@ -77,7 +77,7 @@
   endif
 
   if (isscalar (shape) && isscalar (scale))
-    if ((shape > 0) & (shape < Inf) & (scale > 0) & (scale < Inf))
+    if (shape > 0 && shape < Inf && scale > 0 && scale < Inf)
       rnd = scale .* rande(sz) .^ (1./shape);
     else
       rnd = NaN (sz);