Piecewise Constant Rate Function
Adds the segments represented by the duration, rate pairs The arrays must be the same length, not null, and have at least 1 pair
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 constance rate function
Returns a copy of the piecewise constance 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)