% -*- texinfo -*- % @deftypefn {Function File} {[@var{m}, @var{v}] =} lognstat (@var{mu}, @var{sigma}) % Compute mean and variance of the lognormal distribution. % % @subheading Arguments % % @itemize @bullet % @item % @var{mu} is the first parameter of the lognormal distribution % % @item % @var{sigma} is the second parameter of the lognormal distribution. % @var{sigma} must be positive or zero % @end itemize % @var{mu} and @var{sigma} must be of common size or one of them must be % scalar % % @subheading Return values % % @itemize @bullet % @item % @var{m} is the mean of the lognormal distribution % % @item % @var{v} is the variance of the lognormal distribution % @end itemize % % @subheading Examples % % @example % @group % mu = 0:0.2:1; % sigma = 0.2:0.2:1.2; % [m, v] = lognstat (mu, sigma) % @end group % % @group % [m, v] = lognstat (0, sigma) % @end group % @end example % % @subheading References % % @enumerate % @item % Wendy L. Martinez and Angel R. Martinez. @cite{Computational Statistics % Handbook with MATLAB}. Appendix E, pages 547-557, Chapman & Hall/CRC, % 2001. % % @item % Athanasios Papoulis. @cite{Probability, Random Variables, and Stochastic % Processes}. McGraw-Hill, New York, second edition, 1984. % @end enumerate % @end deftypefn