DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


IsStrictlyMonotone

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

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