AnyRealDistribution

Generates delays by delegating to an Apache Commons Math RealDistribution.

Inheritors

Constructors

Link copied to clipboard
constructor(rng: RandomGenerator, distribution: String, vararg parameters: Double)

Builds a generator from an Apache Commons Math distribution name.

constructor(start: Time, rng: RandomGenerator, distribution: String, vararg parameters: Double)

Builds a generator from an Apache Commons Math distribution name.

constructor(distribution: RealDistribution)

Builds a generator delegating to distribution.

constructor(start: Time, distribution: RealDistribution)

Builds a generator delegating to distribution.

Properties

Link copied to clipboard

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

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