LinearRateSegment

class LinearRateSegment(cumRateLL: Double, timeLL: Double, rateLL: Double, timeUL: Double, rateUL: Double) : RateSegmentIfc

Author

rossetti

Constructors

Link copied to clipboard
constructor(cumRateLL: Double, timeLL: Double, rateLL: Double, timeUL: Double, rateUL: Double)

Properties

Link copied to clipboard

The cumulative rate interval width

Link copied to clipboard
open override val cumulativeRateLowerLimit: Double

The lower limit on the cumulative rate axis

Link copied to clipboard
open override val cumulativeRateUpperLimit: Double

The upper limit on the cumulative rate axis

Link copied to clipboard
open override val rateAtLowerTimeLimit: Double

the rate at the lower limit of the interval

Link copied to clipboard
open override val rateAtUpperTimeLimit: Double

the rate at the upper limit of the interval

Link copied to clipboard

the slope of the rate function for the interval

Link copied to clipboard
open override val timeRangeLowerLimit: Double

The lower time limit

Link copied to clipboard
open override val timeRangeUpperLimit: Double

The upper time limit

Link copied to clipboard
open override val timeRangeWidth: Double

The width of the interval

Functions

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

Returns true if the supplied time is within this rate segments time interval

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

Returns the value of the cumulative rate function for the interval given a value of time within that interval

Link copied to clipboard
open override fun instance(): LinearRateSegment

Returns a new instance of the rate segment

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

Returns the inverse of the cumulative rate function given the interval and a cumulative rate value within that interval. Returns a time

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

Returns the rate for the interval

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