DIY Auto-Correlator 1.0
Auto-Correlator Card implementation using Teensy 4.x microcontrollers.
|
Photon Counting Histogram module for Real time calculation on Teensy 4.1 microcontrollers. More...
#include <histogram.hpp>
Public Member Functions | |
constexpr unsigned int | size () __attribute__((always_inline)) |
Returns the total number of buns, including the overflow bin. More... | |
template<typename DataType > | |
void | push_back (DataType datum) |
Receives a single datum and processes it to into the Histogram. More... | |
void | output () __attribute__((always_inline)) |
Sends the complete Histogram to the Serial output. More... | |
Public Attributes | |
BinType | Histogram [Bins+1] = {0} |
Histogram function array. More... | |
Private Attributes | |
unsigned int | Index |
Index used by the pushback function. More... | |
Photon Counting Histogram module for Real time calculation on Teensy 4.1 microcontrollers.
Describes a real time histogram function that is updated point by point. The Bin index starts from zero. The histogram's lasrt bin, which is Bins + 1
th bin is the overflow bin and includes all points above the maximum bin size. The histogram bin is left centred, i.e., the bin contains all numbers lower or equal to the Bin value.
* [Bin 0][Bin 1][Bin 2][Bin 3][Bin 4]...[Bin Max][•|Bin Overflow|•] *
|
inline |
Sends the complete Histogram to the Serial output.
|
inline |
Receives a single datum and processes it to into the Histogram.
|
inlineconstexpr |
Returns the total number of buns, including the overflow bin.
BinType PCHistogram< BinType, Bins >::Histogram[Bins+1] = {0} |
Histogram function array.
|
private |
Index used by the pushback function.