Piecewise Constant Rate Function
class PiecewiseConstantRateFunction(durations: DoubleArray, rates: DoubleArray) : PiecewiseRateFunction(source)
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
durations
the durations
rates
the rates
Properties
Functions
Link copied to clipboard
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 constance rate function
Returns a copy of the piecewise constance rate function with each rate multiplied by the addFactor