Name

logn_cdf — lognormal cumulative distribution

CALLING SEQUENCE

[cdf]=logn_cdf(x,a,v)

PARAMETERS

Input

• x = variable vector (nx1)

• a = mean vector (default=0)

• v = variance vector (default=1)

Output

• cdf = (nxm) vector containing cdf for each x

DESCRIPTION

Computes cdf of the lognormal distribution.

EXAMPLE

x=logn_cdf([0.2 0.5 1.5],2*ones(1,3),3*ones(1,3))
// Provides a (1x3) vector of the cumulative distribution function of a lognormal law with mean log(2) and variance 3 (for the log of the law) at values 0.2, 0.5 and 1.5.
x=logn_cdf([1:5]')
// Provides a (5x1) vector of the cumulative distribution function of a lognormal law of mean 0 and variance 1 (for the log of the law) at values 1, 2, 3, 4 and 5. 

               

AUTHOR

Eric Dubois 2002