Belle II Software  release-08-01-10
RawDataCollectedMinMax Class Reference

takes care of collecting raw data and staying below RAM-threshold. More...

#include <RawDataCollectedMinMax.h>

Collaboration diagram for RawDataCollectedMinMax:

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.
 

Detailed Description

takes care of collecting raw data and staying below RAM-threshold.

Definition at line 27 of file RawDataCollectedMinMax.h.


The documentation for this class was generated from the following file: