Public Member Functions | Protected Attributes | List of all members
RTLoopHistory Class Reference

Public Member Functions

double average () const
 
 RTLoopHistory (unsigned length, double default_value)
 
void sample (double value)
 

Protected Attributes

vector< double > history_
 
unsigned index_
 
unsigned length_
 

Detailed Description

Definition at line 225 of file main.cpp.

Constructor & Destructor Documentation

◆ RTLoopHistory()

RTLoopHistory::RTLoopHistory ( unsigned  length,
double  default_value 
)
inline

Definition at line 228 of file main.cpp.

Member Function Documentation

◆ average()

double RTLoopHistory::average ( ) const
inline

Definition at line 241 of file main.cpp.

◆ sample()

void RTLoopHistory::sample ( double  value)
inline

Definition at line 235 of file main.cpp.

Member Data Documentation

◆ history_

vector<double> RTLoopHistory::history_
protected

Definition at line 249 of file main.cpp.

◆ index_

unsigned RTLoopHistory::index_
protected

Definition at line 247 of file main.cpp.

◆ length_

unsigned RTLoopHistory::length_
protected

Definition at line 248 of file main.cpp.


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


khi_robot_control
Author(s): nakamichi_d
autogenerated on Sat Oct 21 2023 02:54:50