VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtDoubleSmoother Class Reference

Public Member Functions

 DtDoubleSmoother ()
 CTOR.
 DtDoubleSmoother (unsigned int smoothCount)
 CTOR - smoothCount for num samples.
virtual ~DtDoubleSmoother ()
 DTOR.
void addValue (double speed)
 Add a speed to the smoother.
double currAvg ()
 Get the currently smoothed value.
void reset ()
 Reset the smoother.
void setSmoothCount (unsigned int smoothCount)
 Set the number of samples to smooth.
bool queueFilled () const
 Do we have a full set of points to sample?
int sampleCount () const
 How many values are we averaging.

Protected Attributes

unsigned int mySmoothCount
unsigned int mySampleCount
double myCurrentTotal
std::queue< doublemyQueue

Constructor & Destructor Documentation

makVrv::DtDoubleSmoother::DtDoubleSmoother ( )

CTOR.

makVrv::DtDoubleSmoother::DtDoubleSmoother ( unsigned int  smoothCount)

CTOR - smoothCount for num samples.

virtual makVrv::DtDoubleSmoother::~DtDoubleSmoother ( )
virtual

DTOR.

Member Function Documentation

void makVrv::DtDoubleSmoother::addValue ( double  speed)

Add a speed to the smoother.

double makVrv::DtDoubleSmoother::currAvg ( )

Get the currently smoothed value.

void makVrv::DtDoubleSmoother::reset ( )

Reset the smoother.

void makVrv::DtDoubleSmoother::setSmoothCount ( unsigned int  smoothCount)

Set the number of samples to smooth.

bool makVrv::DtDoubleSmoother::queueFilled ( ) const

Do we have a full set of points to sample?

int makVrv::DtDoubleSmoother::sampleCount ( ) const

How many values are we averaging.

Member Data Documentation

unsigned int makVrv::DtDoubleSmoother::mySmoothCount
protected
unsigned int makVrv::DtDoubleSmoother::mySampleCount
protected
double makVrv::DtDoubleSmoother::myCurrentTotal
protected
std::queue<double> makVrv::DtDoubleSmoother::myQueue
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)