pyanno4rt.tools._monotonic

Monotonicity testing.

Overview

Function

monotonic(array)

Test whether an array is monotonic.

Functions

pyanno4rt.tools._monotonic.monotonic(array)[source]

Test whether an array is monotonic.

Parameters:

array (ndarray) – One-dimensional input array.

Returns:

Indicator for the monotonicity of the array.

Return type:

bool