|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
Natural refinement: uses the Kolmogorov mean derived from the cumulative distribution function of the number system. More...
#include <generators.hpp>
Public Member Functions | |
| template<typename R> | |
| R | operator() (const R &a, const R &b) const |
Natural refinement: uses the Kolmogorov mean derived from the cumulative distribution function of the number system.
For posits, this eliminates wobbling accuracy by providing a smooth mapping from bit strings to reals.
The natural refinement for a power mean M_p is: f(a, b) = M_p(a, b) = ((a^p + b^p) / 2)^(1/p) For Posit(m), p = -2^(-m).
|
inline |