DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


HarmonicMean

Declaration: TMatrix.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.

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.