CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
BinomialProbability Class Reference

#include <BinomialProbability.h>

Public Member Functions

 BinomialProbability ()
 
 BinomialProbability (int hits, int entries)
 
int entries () const
 
float error () const
 
void hit ()
 
int hits () const
 
void miss ()
 
void update (bool hit)
 
float value () const
 

Private Attributes

int theHits
 
int theTotal
 

Detailed Description

A simple class for accumulating binomial "events", i.e. events that have a yes/no outcome, and for computing the binomial error on the fraction of positive hits.

Definition at line 10 of file BinomialProbability.h.

Constructor & Destructor Documentation

BinomialProbability::BinomialProbability ( )
inline

Definition at line 13 of file BinomialProbability.h.

BinomialProbability::BinomialProbability ( int  hits,
int  entries 
)
inline

Member Function Documentation

int BinomialProbability::entries ( ) const
inline

Definition at line 27 of file BinomialProbability.h.

References theTotal.

27 { return theTotal;}
float BinomialProbability::error ( ) const
inline
void BinomialProbability::hit ( void  )
inline

Definition at line 31 of file BinomialProbability.h.

References theHits, and theTotal.

int BinomialProbability::hits ( ) const
inline

Definition at line 29 of file BinomialProbability.h.

References theHits.

29 { return theHits;}
void BinomialProbability::miss ( )
inline

Definition at line 33 of file BinomialProbability.h.

References theTotal.

void BinomialProbability::update ( bool  hit)
inline

Definition at line 35 of file BinomialProbability.h.

References theHits, and theTotal.

Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), python.seqvaluedict.seqdict::__setslice__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.seqvaluedict.seqdict::extend(), 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(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), 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().

float BinomialProbability::value ( ) const
inline

Member Data Documentation

int BinomialProbability::theHits
private

Definition at line 42 of file BinomialProbability.h.

Referenced by hit(), hits(), update(), and value().

int BinomialProbability::theTotal
private

Definition at line 43 of file BinomialProbability.h.

Referenced by entries(), error(), hit(), miss(), update(), and value().