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



StdDevArray


Unit:SDL_openarrays
Class: none
Declaration: [1] function StdDevArray (Arr: TIntArray; ElemLo, ElemHi: integer; var SDVal: double): integer;
[2] function StdDevArray (Arr: TInt2DArray; ColLo, RowLo, ColHi, RowHi: integer; var SDVal: double): integer;
[3] function StdDevArray (Arr: TInt3DArray; ColLo, RowLo, LayerLo, ColHi, RowHi, LayerHi: integer; var SDVal: double): integer;
[4] function StdDevArray (Arr: TInt4DArray; ColLo, RowLo, LayerLo, TSlotLo, ColHi, RowHi, LayerHi, TSlotHi: integer; var SDVal: double): integer;
[5] function StdDevArray (Arr: TDoubleArray; ElemLo, ElemHi: integer; var SDVal: double): integer;
[6] function StdDevArray (Arr: TDouble2DArray; ColLo, RowLo, ColHi, RowHi: integer; var SDVal: double): integer;
[7] function StdDevArray (Arr: TDouble3DArray; ColLo, RowLo, LayerLo, ColHi, RowHi, LayerHi: integer; var SDVal: double): integer;
[8] function StdDevArray (Arr: TDouble4DArray; ColLo, RowLo, LayerLo, TSlotLo, ColHi, RowHi, LayerHi, TSlotHi: integer; var SDVal: double): integer;

The function StdDevArray calculates the sample standard deviation of the values of the given array Arr within the specified range. This range is specified by the given integer values ElemLo, ColLo, RowLo, LayerLo, and TSlotLo, which represent together the first index in the range, and ElemHi, ColHi, RowHi, LayerHi, and TSlotHi, representing the last indices of the range. The calculated sample standard deviation is returned in the variable parameter SDVal.

The function returns the following error codes:

 0 ... everything is OK
-1 ... the array Arr has zero size
-2 ... one of the parameters is out of range



Last Update: 2017-Nov-24