|
CbmRoot
|
A ROOT-style accumulator for the Boost-histogram profiles. More...
#include <Accumulators.h>
Public Types | |
| using | Value_t = ValueType |
| using | ConstRef_t = const Value_t& |
| using | Weight_t = weight_type<Value_t> |
Public Member Functions | |
| RootStyleProfileAccumulator ()=default | |
| Default constructor. | |
| template<class OtherValueType> | |
| RootStyleProfileAccumulator (const RootStyleProfileAccumulator< OtherValueType > &other) | |
| Copy constructor from the instances with other types. | |
| RootStyleProfileAccumulator (ConstRef_t sumWV, ConstRef_t sumWV2, ConstRef_t sumW, ConstRef_t sumW2) | |
| Constructor from the external counters. | |
| void | operator() (ConstRef_t v) |
| Inserts sample with 1. weight. | |
| void | operator() (const Weight_t &w, ConstRef_t v) |
| Inserts sample with weight. | |
| RootStyleProfileAccumulator & | operator+= (const RootStyleProfileAccumulator &rhs) |
| Adds another accumulator. | |
| RootStyleProfileAccumulator & | operator*= (ConstRef_t s) noexcept |
| Scales all entries by value. | |
| bool | operator== (const RootStyleProfileAccumulator &rhs) const noexcept |
| Equality operator. | |
| bool | operator!= (const RootStyleProfileAccumulator &rhs) const noexcept |
| Non-equality operator. | |
| ConstRef_t | GetSumW () const noexcept |
| Returns sum of weights. | |
| ConstRef_t | GetSumW2 () const noexcept |
| Returns sum of weight squares. | |
| ConstRef_t | GetSumWV () const noexcept |
| Returns sum of products of weight multiplied by value. | |
| ConstRef_t | GetSumWV2 () const noexcept |
| Returns sum of products of weight multiplied by squared value. | |
| Value_t | GetMean () const noexcept |
| Returns the mean value. | |
| Value_t | GetEffCount () const noexcept |
| Returns effective sum of values. | |
| Value_t | GetVariance () const noexcept |
| Returns variance. | |
| Value_t | GetStdDev () const noexcept |
| Returns standard deviation of the sample. | |
| Value_t | GetSEM () const noexcept |
| Returns standard error of the mean. | |
Private Member Functions | |
| template<class Archive> | |
| void | serialize (Archive &ar, const unsigned int) |
| Serialization rule. | |
Private Attributes | |
| Value_t | fSumWV {} |
| Sum of weight * value. | |
| Value_t | fSumWV2 {} |
| Sum of weight * value * value. | |
| Value_t | fSumW {} |
| Sum of weights. | |
| Value_t | fSumW2 {} |
| Sum of squared weights. | |
Friends | |
| class | boost::serialization::access |
A ROOT-style accumulator for the Boost-histogram profiles.
| ValueType | Type of the values |
Definition at line 25 of file Accumulators.h.
| using boost::histogram::RootStyleProfileAccumulator< ValueType >::ConstRef_t = const Value_t& |
Definition at line 28 of file Accumulators.h.
| using boost::histogram::RootStyleProfileAccumulator< ValueType >::Value_t = ValueType |
Definition at line 27 of file Accumulators.h.
| using boost::histogram::RootStyleProfileAccumulator< ValueType >::Weight_t = weight_type<Value_t> |
Definition at line 29 of file Accumulators.h.
|
default |
Default constructor.
|
inline |
Copy constructor from the instances with other types.
Definition at line 36 of file Accumulators.h.
|
inline |
Constructor from the external counters.
| sumWV | Sum of weight * value |
| sumWV | Sum of weight * value * value |
| sumW | Sum of weights |
| sumW2 | Sum of weights |
Definition at line 49 of file Accumulators.h.
|
inlinenoexcept |
Returns effective sum of values.
Definition at line 118 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::GetSEM().
|
inlinenoexcept |
Returns the mean value.
Definition at line 115 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::GetVariance().
|
inlinenoexcept |
Returns standard error of the mean.
Definition at line 127 of file Accumulators.h.
|
inlinenoexcept |
Returns standard deviation of the sample.
Definition at line 124 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::GetSEM().
|
inlinenoexcept |
Returns sum of weights.
Definition at line 103 of file Accumulators.h.
|
inlinenoexcept |
Returns sum of weight squares.
Definition at line 106 of file Accumulators.h.
|
inlinenoexcept |
Returns sum of products of weight multiplied by value.
Definition at line 109 of file Accumulators.h.
|
inlinenoexcept |
Returns sum of products of weight multiplied by squared value.
Definition at line 112 of file Accumulators.h.
|
inlinenoexcept |
Returns variance.
Definition at line 121 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::GetStdDev().
|
inlinenoexcept |
Non-equality operator.
Definition at line 100 of file Accumulators.h.
|
inline |
Inserts sample with weight.
| v | Sample |
| w | Sample weight |
Definition at line 64 of file Accumulators.h.
|
inline |
Inserts sample with 1. weight.
| v | Sample |
Definition at line 59 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::operator()().
|
inlinenoexcept |
Scales all entries by value.
Definition at line 86 of file Accumulators.h.
|
inline |
Adds another accumulator.
Definition at line 73 of file Accumulators.h.
|
inlinenoexcept |
Equality operator.
Definition at line 94 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::operator!=().
|
inlineprivate |
Serialization rule.
Definition at line 133 of file Accumulators.h.
|
friend |
Definition at line 130 of file Accumulators.h.
|
private |
Sum of weights.
Definition at line 143 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::operator+=().
|
private |
Sum of squared weights.
Definition at line 144 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::operator+=().
|
private |
Sum of weight * value.
Definition at line 141 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::operator+=().
|
private |
Sum of weight * value * value.
Definition at line 142 of file Accumulators.h.
Referenced by boost::histogram::RootStyleProfileAccumulator< common_type_t< T, U > >::operator+=().