DIY Auto-Correlator 1.0
Auto-Correlator Card implementation using Teensy 4.x microcontrollers.
|
Template specialization. More...
#include <monitor_channel.hpp>
Public Member Functions | |
template<typename DataType > | |
void | push_back (DataType data) |
Adds datum to the channel. More... | |
float_t | mean () const __attribute__((always_inline)) |
Returns the estimated mean. More... | |
AccumulateType | accumulate () const __attribute__((always_inline)) |
Returns the Accumulate so far. More... | |
void | reset () |
Public Attributes | |
volatile AccumulateType | Accumulate = 0.0 |
Sum of the received values. More... | |
volatile uint32_t | Count = 0 |
Count of the received values (Initialized to prevent DivideByZero error) More... | |
Private Types | |
using | AccumulateType = float |
Template specialization.
|
private |
|
inline |
Returns the Accumulate
so far.
|
inline |
Returns the estimated mean.
|
inline |
Adds datum to the channel.
|
inline |
volatile AccumulateType MonitorChannel< true >::Accumulate = 0.0 |
Sum of the received values.
volatile uint32_t MonitorChannel< true >::Count = 0 |
Count of the received values (Initialized to prevent DivideByZero error)