Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
auxiliary_math_functions.h File Reference
#include <limits>
Include dependency graph for auxiliary_math_functions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double harmonic_mean (const double &value_one, const double &value_two)

Function Documentation

◆ harmonic_mean()

double harmonic_mean ( const double & value_one,
const double & value_two )
inline

Carries out the calculation of the harmonic mean of two values. The harmonic mean of x and y is defined by 2*x*y/(x+y)

Parameters
value_one
value_two
Returns
harmonic mean of value_one and value_two

Definition at line 18 of file auxiliary_math_functions.h.