RAVENNAKIT
Loading...
Searching...
No Matches
rav::IntervalStats Struct Reference

Keeps track of an ema with outliers filtered out and a max deviation. More...

#include <interval_stats.hpp>

Public Member Functions

void update (const double interval_ms)

Public Attributes

double interval = 0.0
 Interval as measured over time.
double max_deviation = 0.0
 The max deviation compared to interval.
bool initialized = false
 Whether this struct has been initialized.
double alpha = 0.001
 The alpa of ema calculation. Lower is smoother.

Detailed Description

Keeps track of an ema with outliers filtered out and a max deviation.

Definition at line 36 of file interval_stats.hpp.

Member Function Documentation

◆ update()

void rav::IntervalStats::update ( const double interval_ms)
inline

Definition at line 46 of file interval_stats.hpp.

Member Data Documentation

◆ alpha

double rav::IntervalStats::alpha = 0.001

The alpa of ema calculation. Lower is smoother.

Definition at line 44 of file interval_stats.hpp.

◆ initialized

bool rav::IntervalStats::initialized = false

Whether this struct has been initialized.

Definition at line 42 of file interval_stats.hpp.

◆ interval

double rav::IntervalStats::interval = 0.0

Interval as measured over time.

Definition at line 38 of file interval_stats.hpp.

◆ max_deviation

double rav::IntervalStats::max_deviation = 0.0

The max deviation compared to interval.

Definition at line 40 of file interval_stats.hpp.


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