WorksheetFunction.ExponDist Method
Returns the exponential distribution. Use ExponDist to model the time between events, such as how long an automated bank teller takes to deliver cash. For example, you can use ExponDist to determine the probability that the process takes at most 1 minute.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function ExponDist ( _
Arg1 As Double, _
Arg2 As Double, _
Arg3 As Boolean _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Double
Dim Arg3 As Boolean
Dim returnValue As Double
returnValue = instance.ExponDist(Arg1, _
Arg2, Arg3)
double ExponDist(
double Arg1,
double Arg2,
bool Arg3
)
Parameters
Arg1
Type: System.DoubleX - the value of the function.
Arg2
Type: System.DoubleLambda - the parameter value.
Arg3
Type: System.BooleanCumulative - a logical value that indicates which form of the exponential function to provide. If cumulative is true, ExponDist returns the cumulative distribution function; if false, it returns the probability density function.
Return Value
Type: System.Double
Remarks
Important
This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality. For more information about the new function, see the Expon_Dist(Double, Double, Boolean) method.
If x or lambda is nonnumeric, ExponDist returns the #VALUE! error value.
If x < 0, ExponDist returns the #NUM! error value.
If lambda ≤ 0, ExponDist returns the #NUM! error value.
The equation for the probability density function is:
Figure 1: Equation for the probability density function
The equation for the cumulative distribution function is:
Figure 2: Equation for the cumulative distribution function