NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CHistogramTimeSeries< TValue, TScale, TCounter > Class Template Reference

Search Toolkit Book for CHistogramTimeSeries

A series of same-structured histograms covering logarithmically (base 2) increasing time periods... More...

#include <util/data_histogram.hpp>

+ Collaboration diagram for CHistogramTimeSeries< TValue, TScale, TCounter >:

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
 

Detailed Description

template<typename TValue, typename TScale, typename TCounter>
class CHistogramTimeSeries< TValue, TScale, TCounter >

A series of same-structured histograms covering logarithmically (base 2) increasing time periods...

roughly

Examples
/home/coremake/doxygen/cxx/include/util/data_histogram.hpp.

Definition at line 542 of file data_histogram.hpp.


The documentation for this class was generated from the following file:
Modified on Sat May 18 11:42:18 2024 by modify_doxy.py rev. 669887