This function performs isotonic regression of an input set of values so that the output set of values is a nondecreasing sequence. The output set of values is truncated to the range: [minval, maxval].
isotonic(y, minval, maxval)
Vector of the set of values on which to perform isotonic regression.
Minimum value for the output set of values.
Maximum value for the output set of values.
The revised set of input values
Other Functions Required: sorted - determine whether a set of values is a nondecreasing sequence
sorted
determines whether a set of values is a nondecreasing sequence