npstat::BinSummary Class Reference
Detailed DescriptionA type which can be used as a histogram bin in order to display bin values as mean with variance or as a five-number summary in box plots Constructor & Destructor Documentation◆ BinSummary() [1/6]
Both rangeDown and rangeUp arguments in this constructor must be non-negative ◆ BinSummary() [2/6]
Both rangeDown and rangeUp arguments in this constructor must be non-negative. "minValue" and "maxValue" complete the five-number summary. ◆ BinSummary() [3/6]
This constructor sets both rangeDown and rangeUp to the same value (which must be non-negative) ◆ BinSummary() [4/6]
The default constructor is equivalent to BinSummary(0.0, 0.0) ◆ BinSummary() [5/6]
template<class Accumulator >
Converting constructor from accumulator classes. If accumulators on the right side contain no data, BinSummary will look as if it was made by the default constructor. ◆ BinSummary() [6/6]
Constructors from a single number (the location) Member Function Documentation◆ hasStdev()
Check if the corresponding quantity is set ◆ location()
Standard plotting accessor ◆ min()
min() and max() will throw std::runtime_error in case the corresponding quantities are not set ◆ noThrowStdev()
This accessor will not throw an exception in case the corresponding quantities are undefined. Instead, it will return its argument. ◆ operator!=()
Logical negation of operator== ◆ operator*()
Multiplication of all elements by a constant ◆ operator*=()
In-place multiplication of all elements by a constant ◆ operator+()
Binary addition of two summaries ◆ operator+=()
Add another summary to this one assuming that both represent independent Gaussian distributions. This operator will work only in the case lower and upper ranges are symmetric in both summaries. If either min or max are undefined in any of the summaries, both of them will be undefined in this object after this operator runs. Uncertainties are added in quadrature. ◆ operator-()
Binary subtraction of two summaries ◆ operator-=()
Subtract another summary from this one assuming that both represent independent Gaussian distributions. This operator will work only in the case lower and upper ranges are symmetric in both summaries. If either min or max are undefined in any of the summaries, both of them will be undefined in this object after this operator runs. Note that "-=" does not undo "+=": it is assumed that the correlation is 0 in both cases and uncertainties are added in quadrature. ◆ operator/()
Division of all elements by a constant ◆ operator/=()
In-place division of all elements by a constant ◆ operator=() [1/2]
template<class Accumulator >
Converting assignment operator from accumulator classes ◆ operator=() [2/2]
Assignment operators from a single number (the location) ◆ operator==()
Comparison for equality ◆ scaleWidth()
Change the width of the represented distribution by a certain factor ◆ setLocation()
Modifier method (what it does is obvious from the method name). Will throw std::invalid_argument in case changing the value would result in an inconsistent object. ◆ shift()
Shift the location of the represented distribution ◆ stdev()
stdev() throws std::runtime_error in case rangeDown() and rangeUp() would return different values ◆ symmetrizeRanges()
Symmetrize the ranges. Equivalent to calling setStdev() with the value set to the arithmetic average of the upper and lower range. The documentation for this class was generated from the following file:
Generated by 1.9.1 |