Specialization of RMergeableValue for the StdDev action.
This class also stores information about the number of entries and the average used to compute the standard deviation.
Definition at line 452 of file RMergeableValue.hxx.
Public Member Functions | |
| RMergeableStdDev ()=default | |
| Default constructor. | |
| RMergeableStdDev (const RMergeableStdDev &)=delete | |
| RMergeableStdDev (Double_t value, ULong64_t counts, Double_t mean) | |
| Constructor that initializes data members. | |
| RMergeableStdDev (RMergeableStdDev &&)=delete | |
| const Double_t & | GetValue () const |
| Retrieve the result wrapped by this mergeable. | |
| RMergeableStdDev & | operator= (const RMergeableStdDev &)=delete |
| RMergeableStdDev & | operator= (RMergeableStdDev &&)=delete |
Protected Attributes | |
| Double_t | fValue |
Private Member Functions | |
| void | Merge (const RMergeableValue< Double_t > &other) final |
| Aggregate the information contained in another RMergeableValue into this. | |
Private Attributes | |
| ULong64_t | fCounts |
| Number of entries of the set. | |
| Double_t | fMean |
| Average of the set. | |
#include <ROOT/RDF/RMergeableValue.hxx>
|
inline |
Constructor that initializes data members.
| [in] | value | The action result. |
| [in] | counts | The number of entries of the set. |
| [in] | mean | The average of the set. |
Definition at line 511 of file RMergeableValue.hxx.
|
default |
Default constructor.
Needed to allow serialization of ROOT objects. See [TBufferFile::WriteObjectClass] (classTBufferFile.html::a209078a4cb58373b627390790bf0c9c1)
|
delete |
|
delete |
|
inlineinherited |
Retrieve the result wrapped by this mergeable.
Definition at line 185 of file RMergeableValue.hxx.
|
inlinefinalprivatevirtual |
Aggregate the information contained in another RMergeableValue into this.
| [in] | other | Another RMergeableValue object. |
| std::invalid_argument | If the cast of the other object to the same type as this one fails. |
The other RMergeableValue object is cast to the same type as this object. This is needed to make sure that only results of the same type of action are merged together. The function then computes the aggregated standard deviation of the two samples using an algorithm by [Chan et al. (1979)] (http://i.stanford.edu/pub/cstr/reports/cs/tr/79/773/CS-TR-79-773.pdf)
Implements ROOT::Detail::RDF::RMergeableValue< Double_t >.
Definition at line 473 of file RMergeableValue.hxx.
|
delete |
|
delete |
|
private |
Number of entries of the set.
Definition at line 453 of file RMergeableValue.hxx.
|
private |
Average of the set.
Definition at line 454 of file RMergeableValue.hxx.
|
protectedinherited |
Definition at line 164 of file RMergeableValue.hxx.