#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::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, and gen::k.
|
private |
|
inline |
|
inline |
Definition at line 31 of file RunningAverage.h.
References MillePedeFileConverter_cfg::e, and gen::k.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), HitPairGenerator::clear(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), MultiHitFromChi2EDProducer::produce(), PixelQuadrupletEDProducer::produce(), PixelQuadrupletMergerEDProducer::produce(), CAHitNtupletEDProducerT< T_Generator >::produce(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), HitQuadrupletGenerator::run(), HitTripletGenerator::run(), MultiHitGenerator::run(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
inline |
Definition at line 29 of file RunningAverage.h.
References funct::abs(), and RecoTauDiscriminantConfiguration::mean.
Referenced by MultiHitFromChi2EDProducer::produce(), PixelQuadrupletEDProducer::produce(), PixelQuadrupletMergerEDProducer::produce(), CAHitNtupletEDProducerT< T_Generator >::produce(), HitQuadrupletGenerator::run(), HitTripletGenerator::run(), HitPairGenerator::run(), and MultiHitGenerator::run().
|
private |
Definition at line 42 of file RunningAverage.h.
|
private |
Definition at line 44 of file RunningAverage.h.
|
private |
Definition at line 43 of file RunningAverage.h.
|
static |
Definition at line 22 of file RunningAverage.h.