Pedestal¶
-
template<typename SUM_TYPE = double>
class Pedestal¶ Calculate the pedestal of a series of frames. Can be used as standalone but mostly used in the ClusterFinder.
- Template Parameters:
SUM_TYPE – type of the sum
Public Functions
-
inline Pedestal(uint32_t rows, uint32_t cols, uint32_t n_samples = 1000)¶
-
~Pedestal() = default¶
-
inline void clear()¶
-
inline void clear(const uint32_t row, const uint32_t col)¶
-
template<typename T>
inline void push_no_update(NDView<T, 2> frame)¶ Push but don’t update the cached mean. Speeds up the process when intitializing the pedestal.
-
inline uint32_t rows() const¶
-
inline uint32_t cols() const¶
-
inline uint32_t n_samples() const¶
-
template<typename T>
inline void push_no_update(const uint32_t row, const uint32_t col, const T val_)¶
-
inline void update_mean()¶
Update the mean of the pedestal. This is used after having done push_no_update. It is not necessary to call this function after push.