SPH
Public Member Functions | Friends | List of all members
MinMaxMean Class Reference

Helper class for statistics, accumulating minimal, maximal and mean value of a set of numbers. More...

#include <Means.h>

Public Member Functions

 MinMaxMean ()=default
 
INLINE void accumulate (const Float value)
 
INLINE void reset ()
 Removes all values from the set. More...
 
INLINE Float mean () const
 
INLINE Float min () const
 
INLINE Float max () const
 
INLINE Interval range () const
 
INLINE Size count () const
 

Friends

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

Detailed Description

Helper class for statistics, accumulating minimal, maximal and mean value of a set of numbers.

Definition at line 172 of file Means.h.

Constructor & Destructor Documentation

◆ MinMaxMean()

MinMaxMean::MinMaxMean ( )
default

Member Function Documentation

◆ accumulate()

INLINE void MinMaxMean::accumulate ( const Float  value)
inline

Definition at line 180 of file Means.h.

◆ count()

INLINE Size MinMaxMean::count ( ) const
inline

Definition at line 207 of file Means.h.

◆ max()

INLINE Float MinMaxMean::max ( ) const
inline

Definition at line 199 of file Means.h.

◆ mean()

INLINE Float MinMaxMean::mean ( ) const
inline

Definition at line 191 of file Means.h.

◆ min()

INLINE Float MinMaxMean::min ( ) const
inline

Definition at line 195 of file Means.h.

◆ range()

INLINE Interval MinMaxMean::range ( ) const
inline

Definition at line 203 of file Means.h.

◆ reset()

INLINE void MinMaxMean::reset ( )
inline

Removes all values from the set.

Definition at line 186 of file Means.h.

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 211 of file Means.h.


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