TimeDistribution

interface TimeDistribution<T>

Generates non-negative delays between occurrences.

The sampling operation follows the same separation used by Apache Commons Math distributions: drawing a value does not know which reaction consumes it or how that reaction is scheduled. Reactions convert sampled delays to absolute simulation times and own every decision about preserving, replacing, or transforming an occurrence.

Inheritors

Properties

Link copied to clipboard

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

Link copied to clipboard
abstract val meanDelay: Double

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

Functions

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

Creates a fresh generator with the same configuration for node.

Link copied to clipboard
abstract fun sample(): Time

Draws the next delay.

Link copied to clipboard