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


Unit: SDL_matrix
Class: TMat4D
Declaration: procedure MinimumOfLayersToMatrix (DestMat: TMatrix; LowCol, HighCol, LowRow, HighRow, LowLayer, HighLayer, LowTimeSlot, HighTimeSlot: integer);

The method MinimumOfLayersToMatrix calculates the minimum of several two-dimensional submatrices and copies the result into the matrix DestMat. The range of each submatrix is specified by the parameters LowCol, HighCol, LowRow, and HighRow. The averaged submatrices are specified by the parameters LowLayer, HighLayer, LowTimeSlot, and HighTimeSlot.

As a shortcut, setting both the Low.... and High.... parameters to zero is equal to processing the entire range of available columns/rows/layers/time slots.

The destination matrix DestMat is automatically resized to accomodate to the number of processed data cells.

MinimumOfLayersToMatrix increments the global variable ProcStat in 100 steps and calls the feedback routine MathFeedBackProc in order to allow feedback to the user during time consuming calculations.

Example: The statement MinimumOfLayersToMatrix (MinMat,2,4,2,7,0,0,1,1); calculates the mean of all matrix elements in the columns 2..4 and rows 2..7 for all layers in time slot 1 and stores the result in matrix MinMat.

Last Update: 2014-Sep-05