Herwig 7.3.0
|
A simple counter to store information used for adaption. More...
#include <SimpleCellGrid.h>
Public Member Functions | |
Counter () | |
Default constructor. | |
void | book (double weight) |
Book a point. | |
double | averageWeight () const |
Return the average weight. | |
double | varianceOfAverage () const |
Return the variance of the weights. | |
Public Attributes | |
double | nPoints |
The number of points. | |
double | sumOfWeights |
The sum of weights. | |
double | sumOfSquaredWeights |
The sum of squared weights. | |
double | maxWeight |
The maximum weight. | |
A simple counter to store information used for adaption.
Definition at line 97 of file SimpleCellGrid.h.
|
inline |
Default constructor.
Definition at line 102 of file SimpleCellGrid.h.
|
inline |
Return the average weight.
Definition at line 140 of file SimpleCellGrid.h.
References nPoints, and sumOfWeights.
|
inline |
Book a point.
Definition at line 130 of file SimpleCellGrid.h.
References maxWeight, nPoints, sqr(), sumOfSquaredWeights, sumOfWeights, and ExSample::CellGrid::weight().
|
inline |
Return the variance of the weights.
Definition at line 145 of file SimpleCellGrid.h.
References nPoints, sqr(), sumOfSquaredWeights, and sumOfWeights.
double ExSample::SimpleCellGrid::Counter::maxWeight |
double ExSample::SimpleCellGrid::Counter::nPoints |
The number of points.
Definition at line 110 of file SimpleCellGrid.h.
Referenced by averageWeight(), book(), and varianceOfAverage().
double ExSample::SimpleCellGrid::Counter::sumOfSquaredWeights |
The sum of squared weights.
Definition at line 120 of file SimpleCellGrid.h.
Referenced by book(), and varianceOfAverage().
double ExSample::SimpleCellGrid::Counter::sumOfWeights |
The sum of weights.
Definition at line 115 of file SimpleCellGrid.h.
Referenced by averageWeight(), book(), and varianceOfAverage().