class ExponentialGenerator extends RandomDataGenerator[Double]
Generates i.i.d. samples from the exponential distribution with the given mean.
- Annotations
- @Since( "1.3.0" )
- Source
- RandomDataGenerator.scala
- Alphabetic
- By Inheritance
- ExponentialGenerator
- RandomDataGenerator
- Serializable
- Serializable
- Pseudorandom
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ExponentialGenerator(mean: Double)
- mean
mean for the exponential distribution.
- Annotations
- @Since( "1.3.0" )
Value Members
-
def
copy(): ExponentialGenerator
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
- ExponentialGenerator → RandomDataGenerator
- Annotations
- @Since( "1.3.0" )
-
val
mean: Double
- 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
- ExponentialGenerator → RandomDataGenerator
- Annotations
- @Since( "1.3.0" )
-
def
setSeed(seed: Long): Unit
Set random seed.
Set random seed.
- Definition Classes
- ExponentialGenerator → Pseudorandom
- Annotations
- @Since( "1.3.0" )