class GammaGenerator extends RandomDataGenerator[Double]
Generates i.i.d. samples from the gamma distribution with the given shape and scale.
- Annotations
- @Since("1.3.0")
- Source
- RandomDataGenerator.scala
- Alphabetic
- By Inheritance
- GammaGenerator
- RandomDataGenerator
- Serializable
- Pseudorandom
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new GammaGenerator(shape: Double, scale: Double)
- shape
shape for the gamma distribution.
- scale
scale for the gamma distribution
- Annotations
- @Since("1.3.0")
Value Members
- def copy(): GammaGenerator
Returns a copy of the RandomDataGenerator with a new instance of the rng object used in the class when applicable for non-locking concurrent usage.
Returns a copy of the RandomDataGenerator with a new instance of the rng object used in the class when applicable for non-locking concurrent usage.
- Definition Classes
- GammaGenerator → RandomDataGenerator
- Annotations
- @Since("1.3.0")
- def nextValue(): Double
Returns an i.i.d.
Returns an i.i.d. sample as a generic type from an underlying distribution.
- Definition Classes
- GammaGenerator → RandomDataGenerator
- Annotations
- @Since("1.3.0")
- val scale: Double
- Annotations
- @Since("1.3.0")
- def setSeed(seed: Long): Unit
Set random seed.
Set random seed.
- Definition Classes
- GammaGenerator → Pseudorandom
- Annotations
- @Since("1.3.0")
- val shape: Double
- Annotations
- @Since("1.3.0")