functionisMonotonic

Returns true if the argument is a monotonic sequence

Extends from TRANSFORM.Icons.Function (Icon for functions).

Information

This function returns true if its argument is monotonic increasing or decreasing, and false otherwise. If strict=true, then strict monotonicity is tested, otherwise weak monotonicity is tested.

Inputs

TypeNameDefaultDescription
Real[:]xSequence to be tested
BooleanstrictfalseSet to true to test for strict monotonicity

Outputs

TypeNameDefaultDescription
BooleanmonotonicTrue if x is monotonic increasing or decreasing