Grocer Function
NAME
logn_cdf - lognormal cumulative distribution
CALLING SEQUENCE
[pdf]=logn_cdf(x,a,v)
PARAMETERS
Input
-
x = variable vector (nx1)
-
a = mean vector (default=0)
-
v = variance vector (default=1)
Output
-
pdf = (nxm) vector containing cdf for each x
DESCRIPTION
Computes cdf of the lognormal distribution.
EXAMPLE
1) x=logn_cdf([0.2 0.5 1.5],2*ones(1,3),3*ones(1,3))
2) x=logn_cdf([1:5]')
Example 1 provide 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. Example 2 provide 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