Opm::utils Namespace Reference
Function Documentation
template<typename T , typename Tresult >
Computes the arithmetic average: a_A(t_1, t_2) = (t_1 + t_2)/2.
template<typename T >
Computes the geometric average: a_G(t_1, t_2) = {t_1 t_2}. Since we use std::sqrt(), this function will only compile when T is convertible to and from double.
template<typename T >
Computes the harmonic average: a_H(t_1, t_2) = {2}{1/t_1 + 1/t_2} = {2 t_1 t_2}{t_1 + t_2}. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||