#include <RunningAverage.h>
Public Member Functions | |
int | mean () const |
RunningAverage (unsigned int k=4) | |
void | update (unsigned int q) |
int | upper () const |
Static Public Attributes | |
static constexpr int | N = 16 |
Private Member Functions | |
friend | int::test_average::running_average::test () |
Private Attributes | |
std::array< std::atomic< int >, N > | m_buffer |
std::atomic< int > | m_curr |
std::atomic< int > | m_mean |
Definition at line 17 of file RunningAverage.h.
|
inlineexplicit |
Definition at line 23 of file RunningAverage.h.
References mps_fire::i, isotrackApplyRegressor::k, and m_buffer.
|
private |
|
inline |
|
inline |
Definition at line 35 of file RunningAverage.h.
References alignCSCRings::e, isotrackApplyRegressor::k, m_buffer, m_curr, m_mean, and N.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), HitPairGenerator::clear(), progressbar.ProgressBar::finish(), MatrixUtil.Steps::overwrite(), MultiHitFromChi2EDProducer::produce(), hitTripletEDProducerT::Impl< T_HitTripletGenerator, T_SeedingHitSets, T_IntermediateHitTriplets >::produce(), HitTripletGenerator::run(), and MultiHitGenerator::run().
|
inline |
Definition at line 30 of file RunningAverage.h.
References funct::abs(), m_buffer, mean(), and N.
Referenced by MultiHitFromChi2EDProducer::produce(), hitTripletEDProducerT::Impl< T_HitTripletGenerator, T_SeedingHitSets, T_IntermediateHitTriplets >::produce(), HitTripletGenerator::run(), MultiHitGenerator::run(), and HitPairGenerator::run().
|
private |
Definition at line 47 of file RunningAverage.h.
Referenced by RunningAverage(), update(), and upper().
|
private |
Definition at line 49 of file RunningAverage.h.
Referenced by update().
|
private |
Definition at line 48 of file RunningAverage.h.
|
static |
Definition at line 22 of file RunningAverage.h.