Gamma distribution Sampling implementation based on: "A Simple Method for Generating Gamma Variables" - Marsaglia & Tsang ACM Transactions on Mathematical Software, Vol. 26, No. 3, September 2000, Pages 363-372. alpha = shape (k) beta = scale || 1 / rate (θ)
Static member | Description |
Full Usage:
Gamma.CDF(alpha) (beta) (x)
Parameters:
float
-
beta : float
-
x : float
-
Returns: float
|
Example
|
Full Usage:
Gamma.CheckParam(alpha) (beta)
Parameters:
float
beta : float
|
|
Full Usage:
Gamma.Estimate(observations, ?maxIter, ?tolerance)
Parameters:
float[]
?maxIter : int
?tolerance : float
Returns: ContinuousDistribution<float, float>
|
|
Full Usage:
Gamma.Fit(observations, ?maxIter, ?tolerance)
Parameters:
float[]
?maxIter : int
?tolerance : float
Returns: float * float
|
|
Full Usage:
Gamma.FromMean(alpha) (mean)
Parameters:
float
-
mean : float
-
Returns: ContinuousDistribution<float, float>
|
Example
|
Full Usage:
Gamma.FromRate(shape) (rate)
Parameters:
float
-
rate : float
-
Returns: ContinuousDistribution<float, float>
|
Example
|
Full Usage:
Gamma.Init(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: ContinuousDistribution<float, float>
|
Example
|
Full Usage:
Gamma.InvCDF(alpha) (beta) (x)
Parameters:
float
-
beta : float
-
x : 'a
-
Returns: 'b
|
Example
|
Full Usage:
Gamma.Mean(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: float
|
Example
|
Full Usage:
Gamma.Mode(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: float
|
Example
|
Full Usage:
Gamma.PDF(alpha) (beta) (x)
Parameters:
float
-
beta : float
-
x : float
-
Returns: float
|
Example
|
Full Usage:
Gamma.PDFLn(alpha) (beta) (x)
Parameters:
float
-
beta : float
-
x : float
-
Returns: float
|
Example
|
Full Usage:
Gamma.Sample(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: float
|
Example
|
Full Usage:
Gamma.SampleUnchecked(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: float
|
Example
|
Full Usage:
Gamma.StandardDeviation(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: float
|
Example
|
Full Usage:
Gamma.Support(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: Interval<float>
|
Example
|
Full Usage:
Gamma.ToString(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: string
|
Example
|
Full Usage:
Gamma.Variance(alpha) (beta)
Parameters:
float
-
beta : float
-
Returns: float
|
Example
|