WorksheetFunction.LogNorm_Dist Method
Returns the lognormal distribution of x, where ln(x) is normally distributed with parameters mean and standard_dev. Use this function to analyze data that has been logarithmically transformed.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function LogNorm_Dist ( _
Arg1 As Double, _
Arg2 As Double, _
Arg3 As Double, _
Arg4 As Boolean _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Double
Dim Arg3 As Double
Dim Arg4 As Boolean
Dim returnValue As Double
returnValue = instance.LogNorm_Dist(Arg1, _
Arg2, Arg3, Arg4)
double LogNorm_Dist(
double Arg1,
double Arg2,
double Arg3,
bool Arg4
)
Parameters
Arg1
Type: System.DoubleX - The value at which to evaluate the function.
Arg2
Type: System.DoubleMean - The mean of ln(x).
Arg3
Type: System.DoubleStandard_dev - The standard deviation of ln(x).
Arg4
Type: System.BooleanCumulative - A logical value that determines the form of the function. If cumulative is true, LogNorm_Dist returns the cumulative distribution function; if false, it returns the probability density function.
Return Value
Type: System.Double
Remarks
If any argument is nonnumeric, LogNorm_Dist returns the #VALUE! error value.
If x ≤ 0 or if standard_dev ≤ 0, LogNorm_Dist returns the #NUM! error value.
The equation for the lognormal cumulative distribution function is:
Figure 1: Equation for the lognormal cumulative distribution