comparison scripts/statistics/distributions/cauchy_inv.m @ 10525:3306cfcb856e

Replace constructs like "NaN * one()" with "NaN()" and "Inf * ones ()" with "Inf()"
author David Bateman <dbateman@free.fr>
date Fri, 16 Apr 2010 10:32:07 +0200
parents a1dbe9d80eee
children c776f063fefe
comparison
equal deleted inserted replaced
10524:1c6ff93c025a 10525:3306cfcb856e
45 error ("cauchy_inv: x, lambda and sigma must be of common size or scalar"); 45 error ("cauchy_inv: x, lambda and sigma must be of common size or scalar");
46 endif 46 endif
47 endif 47 endif
48 48
49 sz = size (x); 49 sz = size (x);
50 inv = NaN * ones (sz); 50 inv = NaN (sz);
51 51
52 ok = ((location > -Inf) & (location < Inf) & 52 ok = ((location > -Inf) & (location < Inf) &
53 (scale > 0) & (scale < Inf)); 53 (scale > 0) & (scale < Inf));
54 54
55 k = find ((x == 0) & ok); 55 k = find ((x == 0) & ok);