Add Distribution Fitting & Simulation Features to Your Applications |
||||||
SPA SDK Help Home • Learn More About the SPA SDK | ||||||
SPADistribution.Inverse (method)DescriptionEvaluates the Inverse Cumulative Distribution Function (ICDF), or the Quantile Function. If the function value is a positive/negative infinity, this method will return the SPAEPosInf/SPAENegInf error. Syntax
object.Inverse(p As Double)
Arguments
Return Value(Double) - the Inverse Cumulative Distribution Function value. Example
Sub Test()
Dim dist As New SPADistribution
Dim x, p 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
' evaluate the ICDF
p = 0.5
x = dist.Inverse(p)
End Sub
|
||||||
Copyright © MathWave Technologies www.mathwave.com |