SAPEREExponentialTime

An exponential generator whose rate is computed from a SAPERE match expression.

Constructors

Link copied to clipboard
constructor(rateEquation: String, start: Time, randomGenerator: RandomGenerator)
constructor(rateEquation: String, randomGenerator: RandomGenerator)

Builds a generator starting at time zero.

Properties

Link copied to clipboard

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

Link copied to clipboard
open override val isStatic: Boolean
Link copied to clipboard
open override 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
open override val rate: Double
Link copied to clipboard
open override val rateEquation: IExpression
Link copied to clipboard

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

Functions

Link copied to clipboard
open override fun getRate(): Double

Returns the rate of this time distribution.

Link copied to clipboard
open override fun getRateEquation(): IExpression

Returns the equation used to compute the rate.

Link copied to clipboard
open override fun isStatic(): Boolean

Checks whether the rate of this time distribution is constant.

Link copied to clipboard

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
open override fun setMatches(match: Map<HashString, ITreeNode<*>>)

Sets the matches used to compute the rate.

Link copied to clipboard