Class to calculate the frequency of a loop using a moving average window.
More...
#include <tools.hpp>
Class to calculate the frequency of a loop using a moving average window.
◆ LoopFrequencyCalculator()
ifw::fnd::tools::LoopFrequencyCalculator::LoopFrequencyCalculator |
( |
size_t | window_size = 100 | ) |
|
|
explicit |
Constructor to initialize with a specified window size.
- Parameters
-
[in] | window_size | Number of samples in the sliding window. |
◆ GetFrequency()
double ifw::fnd::tools::LoopFrequencyCalculator::GetFrequency |
( |
| ) |
const |
◆ Reset()
void ifw::fnd::tools::LoopFrequencyCalculator::Reset |
( |
| ) |
|
◆ SetWindowSize()
void ifw::fnd::tools::LoopFrequencyCalculator::SetWindowSize |
( |
const size_t | window_size | ) |
|
◆ Tick()
void ifw::fnd::tools::LoopFrequencyCalculator::Tick |
( |
| ) |
|
The documentation for this class was generated from the following files: