Belle II Software development
|
takes care of collecting raw data and staying below RAM-threshold. More...
#include <RawDataCollectedMinMax.h>
Public Member Functions | |
RawDataCollectedMinMax (unsigned expectedSize, std::pair< double, double > quantiles, unsigned maxSizeThreshold=100000) | |
constructor. please use for quantiles [min, max] min ~0 & max ~1 (range 0-1) | |
void | add (double newVal) |
adds value to collector. | |
unsigned | getSampleSize () const |
returns current sample size (which is not the actual size of the container). | |
std::pair< double, double > | getMinMax () |
returns current best estimates for min and max cuts. | |
Protected Attributes | |
unsigned | m_currentSize |
the current size of the data sample. | |
unsigned | m_fillIntermediateThreshold |
an internal threshold taking care of collecting intermediate results during sample collection | |
std::pair< double, double > | m_minMaxQuantiles |
the quantiles to be collected in the end (defined in [0;1]) | |
std::vector< std::pair< double, double > > | m_intermediateValues |
collects intermediate threshold if expected size is too big. | |
MinMaxCollector< double > | m_collector |
collects raw data in an RAM-saving way. | |
takes care of collecting raw data and staying below RAM-threshold.
Definition at line 27 of file RawDataCollectedMinMax.h.
|
inline |
constructor. please use for quantiles [min, max] min ~0 & max ~1 (range 0-1)
Definition at line 37 of file RawDataCollectedMinMax.h.
|
inline |
adds value to collector.
Definition at line 54 of file RawDataCollectedMinMax.h.
|
inline |
returns current best estimates for min and max cuts.
Definition at line 71 of file RawDataCollectedMinMax.h.
|
inline |
returns current sample size (which is not the actual size of the container).
Definition at line 68 of file RawDataCollectedMinMax.h.
|
protected |
collects raw data in an RAM-saving way.
Definition at line 33 of file RawDataCollectedMinMax.h.
|
protected |
the current size of the data sample.
Definition at line 29 of file RawDataCollectedMinMax.h.
|
protected |
an internal threshold taking care of collecting intermediate results during sample collection
Definition at line 30 of file RawDataCollectedMinMax.h.
|
protected |
collects intermediate threshold if expected size is too big.
Definition at line 32 of file RawDataCollectedMinMax.h.
|
protected |
the quantiles to be collected in the end (defined in [0;1])
Definition at line 31 of file RawDataCollectedMinMax.h.