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....



IsDichotomous


Unit:SDL_openarrays
Class: none
Declaration: [1] function IsDichotomous (var Data: TIntArray; var v1, v2: integer): boolean;
[2] function IsDichotomous (var Data: TDoubleArray; var v1, v2: double): boolean;

The function IsDichotomous checks whether the values in the array Data are dichotomous or not. If the array contains only two values the function returns TRUE, the two values are returned in the variable parameters v1 and v2. The parameter v1 contains the smaller value, the parameter v2 the greater one. If the function returns FALSE the values in v1 and v2 may be undefined.

Please note that in the case of a constant value in all cells of the array Data the function returns a FALSE value.



Last Update: 2020-Apr-14