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



MeanVar


Unit:SDL_matrix
Class: TMat4D
Declaration: procedure MeanVar (LowCol, HighCol, LowRow, HighRow, LowLayer, HighLayer, LowTimeSlot, HighTimeSlot: integer; var Mean, Variance: double);

The method MeanVar calculates the mean and the variance value of all matrix elements within a specific area. The range of the matrix elements to be used is determined by the parameters LowCol, LowRow, LowLayer, LowTimeSlot, HighCol, HighRow, HighLayer, and HighTimeSlot. If any of these parameters receives an invalid value, this value is automatically adjusted to the nearest border value.

Setting both the low and the high parameter of a particular dimension (e.g. LowRow and HighRow) to zero values automatically defaults to the maximum range of that dimension (i.e. 1 for LowRow and NrOfRows for HighRow).

The variable parameters Mean and Variance return the mean and the variance of the selected data range.



Last Update: 2023-Feb-06