Mercurial > octave-antonio
diff scripts/statistics/distributions/lognrnd.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | 19b9f17d22af |
line wrap: on
line diff
--- a/scripts/statistics/distributions/lognrnd.m Thu Jan 20 17:24:59 2011 -0500 +++ b/scripts/statistics/distributions/lognrnd.m Thu Jan 20 17:35:29 2011 -0500 @@ -34,7 +34,7 @@ function rnd = lognrnd (mu, sigma, r, c) if (nargin > 1) - if (!isscalar(mu) || !isscalar(sigma)) + if (!isscalar(mu) || !isscalar(sigma)) [retval, mu, sigma] = common_size (mu, sigma); if (retval > 0) error ("lognrnd: MU and SIGMA must be of common size or scalar"); @@ -79,7 +79,7 @@ if (!(sigma > 0) || !(sigma < Inf)) rnd = NaN (sz); else - rnd = exp(mu + sigma .* randn (sz)); + rnd = exp(mu + sigma .* randn (sz)); endif else rnd = exp (mu + sigma .* randn (sz));