Mercurial > hg > octave-nkf
comparison scripts/deprecated/exponential_rnd.m @ 7693:8e5371d47da6
note version when functions were deprecated
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Apr 2008 21:56:23 -0400 |
parents | a1dbe9d80eee |
children | 0a362fa8f3c8 |
comparison
equal
deleted
inserted
replaced
7692:da1f4bc7cbe8 | 7693:8e5371d47da6 |
---|---|
29 ## @end deftypefn | 29 ## @end deftypefn |
30 | 30 |
31 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> | 31 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> |
32 ## Description: Random deviates from the exponential distribution | 32 ## Description: Random deviates from the exponential distribution |
33 | 33 |
34 ## Deprecated in version 3.0 | |
35 | |
34 function rnd = exponential_rnd (varargin) | 36 function rnd = exponential_rnd (varargin) |
35 | 37 |
36 if (nargin > 0) | 38 if (nargin > 0) |
37 varargin{1} = 1 ./ varargin{1}; | 39 varargin{1} = 1 ./ varargin{1}; |
38 endif | 40 endif |