#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 |
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.
BinomialProbability::BinomialProbability | ( | ) | [inline] |
Definition at line 13 of file BinomialProbability.h.
BinomialProbability::BinomialProbability | ( | int | hits, |
int | entries | ||
) | [inline] |
int BinomialProbability::entries | ( | ) | const [inline] |
float BinomialProbability::error | ( | ) | const [inline] |
Definition at line 22 of file BinomialProbability.h.
References f, L1TEmulatorMonitor_cff::p, mathSSE::sqrt(), theTotal, and value().
void BinomialProbability::hit | ( | void | ) | [inline] |
int BinomialProbability::hits | ( | ) | const [inline] |
void BinomialProbability::miss | ( | ) | [inline] |
void BinomialProbability::update | ( | bool | hit | ) | [inline] |
float BinomialProbability::value | ( | ) | const [inline] |
int BinomialProbability::theHits [private] |
int BinomialProbability::theTotal [private] |