ExponentialTime

open class ExponentialTime<T>(val lambda: Double, start: Time, randomGenerator: RandomGenerator) : AbstractDistribution<T>

Generates exponentially distributed delays.

Parameters

lambda

configured exponential rate

start

initial scheduling time

randomGenerator

simulation random generator

Inheritors

Constructors

Link copied to clipboard
constructor(lambda: Double, start: Time, randomGenerator: RandomGenerator)
constructor(rate: Double, randomGenerator: RandomGenerator)

Properties

Link copied to clipboard

The current meanDelay, for consumers requiring it to be finite and positive.

Link copied to clipboard
open val lambda: Double
Link copied to clipboard
open override val meanDelay: Double

The expected value of the delays drawn by sample in the current model state.

Link copied to clipboard

earliest absolute time at which a reaction using this generator may run

Functions

Link copied to clipboard
open override fun newInstanceOn(node: Node<T>): TimeDistribution<T>

Creates a fresh generator with the same configuration for node.

Link copied to clipboard
open override fun sample(): Time

Draws the next delay.

Link copied to clipboard