#include <SERunningAverage.h>

Inherits SEProperty.

Public Member Functions

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

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

◆ Invalidate()

void SERunningAverage::Invalidate ( )
overridevirtual

Implements SEProperty.

◆ IsValid()

bool SERunningAverage::IsValid ( ) const
overridevirtual

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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.