GammaDistribution class

Samples from a Gamma(shape, scale) distribution via Marsaglia and Tsang's method (shape >= 1) or Johnk's algorithm (shape < 1).

Constructors

GammaDistribution(double shape, double scale)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
Scale parameter (beta / theta).
final
shape → double
Shape parameter (alpha / k).
final

Methods

nextDouble() → double
Draws the next sample from this distribution.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
randomIndex(int upperLimit) → int
A uniform random index in [0, upperLimit).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited