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



GeometricMean


Unit:SDL_matrix
Class: TMatrix, TIntMatrix
Declaration: function GeometricMean (LowCol, LowRow, HighCol, HighRow: integer): double;

The method GeometricMean calculates the geometric mean of all matrix elements within a specific area. The range of the matrix elements to be used is determined by the parameters LowRow, LowCol, HighRow, and HighCol. If any of these elements holds a negative value, an exception is raised.

Hint: Setting both the low and high parameter of a dimension (i.e. LowCol and HighCol) to zero values forces the method to use all elements of that dimension.



Last Update: 2023-Feb-06