MAK Data Logger API Documentation for DIS
List of all members | Public Member Functions | Protected Attributes
MAKLogger::DtValueSmoother Class Reference

Class responsible for smoothing multiple input values and calculating an interpolated 'next' value. More...

+ Collaboration diagram for MAKLogger::DtValueSmoother:

Public Member Functions

 DtValueSmoother (int valuesToBuffer, double init)
 ~DtValueSmoother ()
void addValue (double value)
double getSmoothedValue ()
 Get the next value.

Protected Attributes

double * myValues
int myBufferSize

Detailed Description

Class responsible for smoothing multiple input values and calculating an interpolated 'next' value.

This assumes the values input are in a linear distribution.

Constructor & Destructor Documentation

MAKLogger::DtValueSmoother::DtValueSmoother ( int  valuesToBuffer,
double  init 
)
inline
MAKLogger::DtValueSmoother::~DtValueSmoother ( )
inline

Member Function Documentation

void MAKLogger::DtValueSmoother::addValue ( double  value)
inline
double MAKLogger::DtValueSmoother::getSmoothedValue ( )
inline

Get the next value.

Member Data Documentation

int MAKLogger::DtValueSmoother::myBufferSize
protected
double* MAKLogger::DtValueSmoother::myValues
protected

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

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)