Add Distribution Fitting & Simulation Features to Your Applications |
||||||
SPA SDK Help Home • Learn More About the SPA SDK | ||||||
SPADistribution.Cdf (method)DescriptionEvaluates the Cumulative Distribution Function (CDF). Syntax
object.Cdf(x As Double)
Arguments
Return Value(Double) - the Cumulative Distribution Function value. Example
Sub Test()
Dim dist As New SPADistribution
Dim x, y As Double
SPAApplication.Initialize
' specify the distribution type and parameters
dist.Type = SPADistWeibull ' Weibull distribution
dist.Param(0) = 1.5 ' alpha
dist.Param(1) = 2 ' beta
x = 1
' check if the x-value is valid
If dist.Defined(x) Then
y = dist.Cdf(x)
Else
MsgBox "The distribution is not defined for this x-value"
End If
End Sub
|
||||||
Copyright © MathWave Technologies www.mathwave.com |