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


Fill1DArraySerial

Declaration: Fill1DArraySerial (var Arr: TDoubleArray; Offset, Diff: double): integer;
The function Fill1DArraySerial fills the array Arr such that each cell holds a unique value, starting with Offset at the first cell. The value is incremented by Diff for each succeeding cell.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the array Arr has zero size