Developer Documentation
ACG::UnbinnedHistogram< T > Class Template Reference
Inheritance diagram for ACG::UnbinnedHistogram< T >:
ACG::Histogram

Public Member Functions

 UnbinnedHistogram (std::vector< size_t > &&bin_counts, std::vector< T > &&bin_values)
 
double getTotalWidth () const override
 
LabelType getLabelType () const override
 
QString getBinLabel (size_t idx) const override
 
- Public Member Functions inherited from ACG::Histogram
 Histogram (std::vector< size_t > &&bins, std::vector< double > &&bin_widths)
 
const std::vector< size_t > & getBins () const
 
const std::vector< double > & getBinWidths () const
 
virtual double getTotalWidth () const =0
 
virtual LabelType getLabelType () const =0
 
virtual QString getBoundaryLabel (size_t) const
 
virtual QString getBinLabel (size_t) const
 

Private Attributes

std::vector< T > bin_values_
 

Additional Inherited Members

- Public Types inherited from ACG::Histogram
enum class  LabelType { PerBin , PerBoundary }
 
- Protected Attributes inherited from ACG::Histogram
std::vector< size_t > bins_
 
std::vector< double > bin_widths_
 

Detailed Description

template<typename T>
class ACG::UnbinnedHistogram< T >

Definition at line 99 of file Histogram.hh.

Constructor & Destructor Documentation

◆ UnbinnedHistogram()

template<typename T >
ACG::UnbinnedHistogram< T >::UnbinnedHistogram ( std::vector< size_t > &&  bin_counts,
std::vector< T > &&  bin_values 
)
inline

Definition at line 102 of file Histogram.hh.

Member Function Documentation

◆ getBinLabel()

template<typename T >
QString ACG::UnbinnedHistogram< T >::getBinLabel ( size_t  idx) const
inlineoverridevirtual

Reimplemented from ACG::Histogram.

Definition at line 111 of file Histogram.hh.

◆ getLabelType()

template<typename T >
LabelType ACG::UnbinnedHistogram< T >::getLabelType ( ) const
inlineoverridevirtual

Implements ACG::Histogram.

Definition at line 110 of file Histogram.hh.

◆ getTotalWidth()

template<typename T >
double ACG::UnbinnedHistogram< T >::getTotalWidth ( ) const
inlineoverridevirtual

Implements ACG::Histogram.

Definition at line 109 of file Histogram.hh.

Member Data Documentation

◆ bin_values_

template<typename T >
std::vector<T> ACG::UnbinnedHistogram< T >::bin_values_
private

Definition at line 113 of file Histogram.hh.


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