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


Class: TVector, TIntVector
Declaration: function HarmonicMean (LowElem, HighElem: integer): double;

The method HarmonicMean calculates the harmonic mean of all elements between LowElem and HighElem (including these border elements). If any of the elements is negative or zero an exception is raised.

Last Update: 2012-Oct-20