Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The function's lower limit on the cumulative rate range

Link copied to clipboard

The function's upper limit on the cumulative rate range

Link copied to clipboard
abstract val durations: DoubleArray

Get the durations as an array

Link copied to clipboard
open override var maximumRate: Double

Gets the maximum value of the rate function over its time horizon

Link copied to clipboard
open override var minimumRate: Double

Gets the minimum value of the rate function over its time horizon

Link copied to clipboard
abstract val rates: DoubleArray

Get the rates as an array

Link copied to clipboard
open override val timeRangeLowerLimit: Double

The function's lower limit on the time range

Link copied to clipboard
open override val timeRangeUpperLimit: Double

The function's upper limit on the time range

Functions

Link copied to clipboard
open operator fun contains(time: Double): Boolean

Returns true if the supplied time is within the time range of the rate function

Link copied to clipboard
open override fun cumulativeRate(time: Double): Double

Returns the value of the cumulative rate function at the supplied time

Link copied to clipboard

Searches for the interval that the supplied cumulative rate falls within. Returns -1 if no interval is found

Link copied to clipboard
abstract fun findTimeInterval(time: Double): Int

Searches for the interval that the supplied time falls within. Returns -1 if no interval is found

Link copied to clipboard

Returns a copy of the piecewise rate function

abstract fun instance(factor: Double): PiecewiseRateFunction

Returns a copy of the piecewise rate function with each rate multiplied by the factor

Link copied to clipboard
open override fun inverseCumulativeRate(rate: Double): Double

Returns the value of the inverse cumulative rate function at the supplied rate The value returned is interpreted as a time

Link copied to clipboard

Returns the number of segments

Link copied to clipboard
open override fun rate(time: Double): Double

Returns the rate for the supplied time

Link copied to clipboard

Returns the rate segment at index k Interval indexing starts at index 0 (i.e. 0 is the first interval, silly Java zero based indexing)

Link copied to clipboard
open override fun toString(): String