#include <SERunningAverage.h>

Inherits SEProperty.

Public Member Functions

 SERunningAverage ()
 
virtual ~SERunningAverage ()
 
virtual void Clear ()
 
virtual void Invalidate ()
 
virtual bool IsValid () const
 
double Sample (double d)
 
double Value ()
 
unsigned int NumSamples ()
 
- Public Member Functions inherited from SEProperty
 SEProperty ()
 
virtual ~SEProperty ()
 

Protected Attributes

double m_Sum
 
unsigned int m_NumSamples
 

Friends

class PBProperty
 

Constructor & Destructor Documentation

◆ SERunningAverage()

SERunningAverage::SERunningAverage ( )

◆ ~SERunningAverage()

SERunningAverage::~SERunningAverage ( )
virtual

Member Function Documentation

◆ Clear()

void SERunningAverage::Clear ( )
virtual

Reimplemented from SEProperty.

◆ Invalidate()

void SERunningAverage::Invalidate ( )
virtual

Implements SEProperty.

◆ IsValid()

bool SERunningAverage::IsValid ( ) const
virtual

Implements SEProperty.

◆ NumSamples()

unsigned int SERunningAverage::NumSamples ( )
inline

◆ Sample()

double SERunningAverage::Sample ( double  d)

Add value to Sample list and return the new average

◆ Value()

double SERunningAverage::Value ( )

Return the average value

Friends And Related Function Documentation

◆ PBProperty

friend class PBProperty
friend

Member Data Documentation

◆ m_NumSamples

unsigned int SERunningAverage::m_NumSamples
protected

◆ m_Sum

double SERunningAverage::m_Sum
protected