The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



IsStrictlyMonotone


Unit:SDL_openarrays
Class: none
Declaration: [1] function IsStrictlyMonotone (var Data: TIntArray): boolean;
[2] function IsStrictlyMonotone (var Data: TDoubleArray): boolean;

The function IsStrictlyMonotone checks whether the values in the array Data form a strictly monotone series or not. A monotone series contains consecutive values which all exhibit either positive or negative differences to their respective predecessor (zero differences are not allowed in strictly monotonic functions).

Please note that the array has to have a minimum length of three elements, if the array is shorter the function returns always TRUE.


Last Update: 2023-Feb-06