MONOTONIC
gtsProduces a new Geo Time Series™ from an input by modifying the value so the result is monotonous. This is technically applying a ratchet effect on values.
The MONOTONIC
function expects a boolean on top of the stack and a Geo Time Series™ or list thereof below the boolean. The boolean indicates whether the
result should be monotonically increasing (false) or decreasing (true).