NHPPPiecewiseRateFunctionTimeBtwEventRV

class NHPPPiecewiseRateFunctionTimeBtwEventRV(parent: ModelElement, rateFunction: PiecewiseRateFunction, lastRate: Double = Double.NaN, streamNum: Int = 0, name: String? = null) : NHPPTimeBtwEventRV(source)

Models non-homogenous Poisson processes based on piecewise rate functions.

Constructors

Link copied to clipboard
constructor(parent: ModelElement, rateFunction: PiecewiseRateFunction, lastRate: Double = Double.NaN, streamNum: Int = 0, name: String? = null)

Functions

Link copied to clipboard
fun adjustRates(factor: Double)

This function can be used to adjust the rates within the piecewise rate function up or down by the provided factor. Each rate is multiplied by the factor for its new setting. For example, to increase all rates by 20 percent, the factor should be 1.2. The previous rate function will be replaced by a new rate function with the adjusted rates.