NCBI C++ ToolKit

Search Toolkit Book for CHistogramTimeSeries
A series of samestructured histograms covering logarithmically (base 2) increasing time periods... More...
#include <util/data_histogram.hpp>
Classes  
struct  STimeBin 
A histograms which covers a certain number of ticks. More...  
Public Types  
using  THistogram = CHistogram< TValue, TScale, TCounter > 
using  TTicks = unsigned int 
Type of the unit of time. More...  
using  TTimeBins = list< STimeBin > 
Type of the series of histograms. More...  
Public Member Functions  
CHistogramTimeSeries (THistogram &model_histogram)  
void  Add (TValue value) 
Add value to the data distribution. More...  
void  Rotate () 
Merge the most recent (now active) histogram data into the time series. More...  
void  Reset () 
Reset to the initial state. More...  
TTimeBins  GetHistograms () const 
Histograms – in the order from the most recent to the least recent. More...  
TTicks  GetCurrentTick (void) const 
Number of ticks the histogram series has handled. More...  
Private Member Functions  
void  x_AppendBin (const THistogram &model_histogram, TTicks n_ticks) 
void  x_Shift (size_t index, typename TTimeBins::iterator current_it) 
Private Attributes  
TTimeBins  m_TimeBins 
std::mutex  m_Mutex 
TTicks  m_CurrentTick 
A series of samestructured histograms covering logarithmically (base 2) increasing time periods...
roughly
Definition at line 542 of file data_histogram.hpp.