MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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. More...
 

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 Thu Jul 14 15:45:33 EDT 2022 from SVN revision 244827
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)