Home > freetb4matlab > statistics > lognstat.m

# lognstat

## PURPOSE

% Compute mean and variance of the lognormal distribution.

## SYNOPSIS

function [m, v] = lognstat (mu, sigma)

## DESCRIPTION

```% -*- texinfo -*-
% @deftypefn {Function File} {[@var{m}, @var{v}] =} lognstat (@var{mu}, @var{sigma})
% Compute mean and variance of the lognormal distribution.
%
%
% @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
%
%
% @itemize @bullet
% @item
% @var{m} is the mean of the lognormal distribution
%
% @item
% @var{v} is the variance of the lognormal distribution
% @end itemize
%
%
% @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
%
%
% @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```

## CROSS-REFERENCE INFORMATION

This function calls:
This function is called by:

Generated on Sat 16-May-2009 00:04:49 by m2html © 2003