Piecewise Linear Rate Function
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
the durations
the rates
Properties
The function's lower limit on the cumulative rate range
The function's upper limit on the cumulative rate range
Get the durations as an array
Gets the maximum value of the rate function over its time horizon
Gets the minimum value of the rate function over its time horizon
Get the rates as an array
The function's lower limit on the time range
The function's upper limit on the time range
Functions
Returns the value of the cumulative rate function at the supplied time
Searches for the interval that the supplied cumulative rate falls within. Returns -1 if no interval is found
Searches for the interval that the supplied time falls within. Returns -1 if no interval is found
Returns a copy of the piecewise linear rate function
Returns a copy of the piecewise linear rate function with each rate multiplied by the addFactor
Returns the value of the inverse cumulative rate function at the supplied rate The value returned is interpreted as a time
Returns the number of segments
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)