DiracComb

open class DiracComb<T>(start: Time, rate: Double) : AbstractDistribution<T>

Generates a constant delay between occurrences.

Parameters

start

initial scheduling time

rate

number of occurrences per time unit

Inheritors

Constructors

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

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