isMonotonicIncreasing
Syntax
isMonotonicIncreasing(X)
Alias: isMonotonic
Arguments
X is a scalar/vector.
Details
Check whether the elements in X are monotonically increasing.
Examples
a = [2023.01M,2023.02M,2023.03M,2023.04M,2023.05M,2023.06M]
isMonotonicIncreasing(a);
// output
true
a = [1,3,6,5,7,9]
isMonotonicIncreasing(a);
// output
false
a = [1,3,3,5,7,9]
isMonotonicIncreasing(a);
// output
true
a = [NULL,1,3,5,7,9]
isMonotonicIncreasing(a);
// output
true
a = [1,3,5,NULL,7,9]
isMonotonicIncreasing(a);
// output
false
Related functions: isMonotonicDecreasing, isMonotonic