SPH
Public Member Functions | Friends | List of all members
GeneralizedMean< Power > Class Template Reference

Generalized mean with fixed (compile-time) power. More...

#include <Means.h>

Public Member Functions

 GeneralizedMean ()=default
 
INLINE void accumulate (const Float value)
 
INLINE void reset ()
 Removes all values from the set. More...
 
INLINE Float compute () const
 
INLINE Size count () const
 

Friends

std::ostream & operator<< (std::ostream &stream, const GeneralizedMean &stats)
 

Detailed Description

template<int Power>
class GeneralizedMean< Power >

Generalized mean with fixed (compile-time) power.

Definition at line 15 of file Means.h.

Constructor & Destructor Documentation

◆ GeneralizedMean()

template<int Power>
GeneralizedMean< Power >::GeneralizedMean ( )
default

Member Function Documentation

◆ accumulate()

template<int Power>
INLINE void GeneralizedMean< Power >::accumulate ( const Float  value)
inline

Definition at line 23 of file Means.h.

◆ compute()

template<int Power>
INLINE Float GeneralizedMean< Power >::compute ( ) const
inline

Definition at line 34 of file Means.h.

◆ count()

template<int Power>
INLINE Size GeneralizedMean< Power >::count ( ) const
inline

Definition at line 38 of file Means.h.

◆ reset()

template<int Power>
INLINE void GeneralizedMean< Power >::reset ( )
inline

Removes all values from the set.

Definition at line 29 of file Means.h.

Friends And Related Function Documentation

◆ operator<<

template<int Power>
std::ostream& operator<< ( std::ostream &  stream,
const GeneralizedMean< Power > &  stats 
)
friend

Definition at line 42 of file Means.h.


The documentation for this class was generated from the following file: