#include <ConstHistogram.h>
Public Member Functions | |
| ConstHistogram (T min, T step, T max) | |
| Constructor taking two arguments. | |
| ~ConstHistogram () | |
| ConstHistogram (ConstHistogram< T > &rhs) | |
| Copy constructor. | |
| void | operator+= (T value) |
| insert a datapoint into the histogram | |
| void | operator-= (T value) |
| removes a datapoint into the histogram | |
| void | Insert (T value) |
| insert a datapoint into the histogram | |
| void | Insert (T value, double weight) |
| insert a datapoint into the histogram | |
| void | Remove (T value) |
| removes a datapoint into the histogram | |
| void | Remove (T value, double weight) |
| removes a datapoint into the histogram | |
| double & | operator[] (int i) const |
| indexing operator | |
| void | Clear () |
| Clears the contents of the bins. | |
| void | Reset () |
| Clears the contents of the bins. | |
| void | Print () |
| Prints the histogram to the stdout. | |
| void | Print (std::ostream &os) |
| int | GetNumberOfBins () const |
Protected Attributes | |
| int | mNbins |
| Number of bins. | |
| T | mInc |
| Increment. | |
| T | mMin |
| Minimum value. | |
| T | mMax |
| Maximum value. | |
| T | mInvRange |
| 1 over the range of values | |
| bool | mShowWarnings |
| Indicates whether warnings should be displayed. | |
| double * | mWeightOfBin |
| Bin weight (number of datapoints in each bin). | |
| glotzmath::ConstHistogram< T >::ConstHistogram | ( | T | min, | |
| T | step, | |||
| T | max | |||
| ) | [inline] |
Constructor taking two arguments.
| min | is the minimum of the histogram | |
| max | is the max of the histogram |
| glotzmath::ConstHistogram< T >::~ConstHistogram | ( | ) | [inline] |
| glotzmath::ConstHistogram< T >::ConstHistogram | ( | ConstHistogram< T > & | rhs | ) | [inline] |
Copy constructor.
| rhs | is another histogram of equal size |
| void glotzmath::ConstHistogram< T >::operator+= | ( | T | value | ) | [inline] |
insert a datapoint into the histogram
| value | is the value of the datapoint |
| void glotzmath::ConstHistogram< T >::operator-= | ( | T | value | ) | [inline] |
removes a datapoint into the histogram
| value | is the value of the datapoint |
| void glotzmath::ConstHistogram< T >::Insert | ( | T | value | ) | [inline] |
insert a datapoint into the histogram
| value | is the value of the datapoint |
| void glotzmath::ConstHistogram< T >::Insert | ( | T | value, | |
| double | weight | |||
| ) | [inline] |
insert a datapoint into the histogram
| value | is the value of the datapoint | |
| weight | is the weight of the datapoint |
| void glotzmath::ConstHistogram< T >::Remove | ( | T | value | ) | [inline] |
removes a datapoint into the histogram
| value | is the value of the datapoint |
| void glotzmath::ConstHistogram< T >::Remove | ( | T | value, | |
| double | weight | |||
| ) | [inline] |
removes a datapoint into the histogram
| value | is the value of the datapoint |
| double& glotzmath::ConstHistogram< T >::operator[] | ( | int | i | ) | const [inline] |
indexing operator
| i | is the index to be returned |
| void glotzmath::ConstHistogram< T >::Clear | ( | ) | [inline] |
| void glotzmath::ConstHistogram< T >::Reset | ( | ) | [inline] |
| void glotzmath::ConstHistogram< T >::Print | ( | ) | [inline] |
Prints the histogram to the stdout.
| void glotzmath::ConstHistogram< T >::Print | ( | std::ostream & | os | ) | [inline] |
| int glotzmath::ConstHistogram< T >::GetNumberOfBins | ( | ) | const [inline] |
int glotzmath::ConstHistogram< T >::mNbins [protected] |
Number of bins.
T glotzmath::ConstHistogram< T >::mInc [protected] |
Increment.
T glotzmath::ConstHistogram< T >::mMin [protected] |
Minimum value.
T glotzmath::ConstHistogram< T >::mMax [protected] |
Maximum value.
T glotzmath::ConstHistogram< T >::mInvRange [protected] |
1 over the range of values
bool glotzmath::ConstHistogram< T >::mShowWarnings [protected] |
Indicates whether warnings should be displayed.
double* glotzmath::ConstHistogram< T >::mWeightOfBin [protected] |
Bin weight (number of datapoints in each bin).
1.5.3