RandomDiracComb

A DiracComb whose rate is sampled uniformly within the provided bounds for each new instance.

Constructors

Link copied to clipboard
constructor(randomGenerator: RandomGenerator, start: Time, minRate: Double, maxRate: Double)

Builds a randomized-rate generator with an explicit absolute start time.

constructor(randomGenerator: RandomGenerator, minRate: Double, maxRate: Double)

Builds a randomized-rate generator whose initial start is randomized as well.

Properties

Link copied to clipboard

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

Link copied to clipboard

Number of occurrences per time unit represented by this constant-delay law.

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
Link copied to clipboard
open override fun toString(): String