Declaration: CreateSigmoidArray (Data: TDoubleArray; Slope, YOffset, Ampl: double; XOffset: integer): integer;
The function CreateSigmoidArray generates a sigmoid function and fills the array Data with the corresponding values. The parameter Slope determines the slope of the function in the inflection point, the parameter Ampl the amplitude of the function, and the parameters XOffset and YOffset control the offsets in x and y direction. Please note that the XOffset is equivalent to the index of the data array.

The following figure shows the generated radius basis function using the following parameters:

Slope = 0.10
YOffset = 2.0
XOffset = 100
Ampl = 6.0

The function returns the following error codes:

 0 ... everything is OK
-1 ... the size of the Data array is too small (minimum size is 3 cells)