SPH
|
Generalized mean with negative (runtime) power. More...
#include <Means.h>
Public Member Functions | |
NegativeMean (const Float power) | |
INLINE void | accumulate (const Float value) |
INLINE void | accumulate (const NegativeMean &other) |
INLINE Float | compute () const |
Public Member Functions inherited from PositiveMean | |
PositiveMean (const Float power) | |
INLINE void | accumulate (const Float value) |
INLINE void | accumulate (const PositiveMean &other) |
INLINE void | reset () |
INLINE Float | compute () const |
INLINE Size | count () const |
Additional Inherited Members | |
Protected Attributes inherited from PositiveMean | |
double | sum = 0. |
Size | weight = 0 |
Float | power |
Generalized mean with negative (runtime) power.
Cannot be used to compute geometric mean. If constructed with non-negative power, it issues an assert.
|
inline |