Piecewise Linear Rate Function
class PiecewiseLinearRateFunction(durations: DoubleArray, rates: DoubleArray) : PiecewiseRateFunction(source)
Represents a piecewise linear rate function as a sequence of segments. The rate at the beginning of the segment can be different from the rate at the end of the segment, with a linear rate over the duration.
Uses the segments represented by the rate, duration pairs The rate array must be larger than the duration array, not null, and have at least 2 rates. Any rates rate0 beginning rate of segment 0, duration0 duration of segment 0 i >=1 ratei ending rate of segment i-1, beginning rate of segment i, durationi duration of segment i
Author
rossetti
Parameters
durations
the durations
rates
the rates