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_vector
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: 2023-Feb-06