changeset 12695:c9e1a2f8d7f8 stable

wblinv.m: Bug fix to return 0 for input 0 and not -Inf. * wblinv.m: Bug fix to return 0 for input 0 and not -Inf.
author Rik <octave@nomad.inbox5.com>
date Tue, 31 May 2011 22:52:18 -0700
parents e09860581a7c
children 5bf8af73fc34
files scripts/statistics/distributions/wblinv.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/statistics/distributions/wblinv.m	Tue May 31 11:50:38 2011 -0700
+++ b/scripts/statistics/distributions/wblinv.m	Tue May 31 22:52:18 2011 -0700
@@ -53,7 +53,7 @@
 
   k = find ((x == 0) & ok);
   if (any (k))
-    inv(k) = -Inf;
+    inv(k) = 0;
   endif
 
   k = find ((x > 0) & (x < 1) & ok);