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



HarmonicMean


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

The method HarmonicMean calculates the harmonic 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 or zero value, an exception is raised.


Last Update: 2008-Okt-29