CP3-llbb Framework
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Histogram< T, _Bin > Class Template Referenceabstract

Public Member Functions

virtual std::size_t findBin (const std::vector< _Bin > &values)=0
 
virtual std::size_t findClosestBin (const std::vector< _Bin > &values, bool *outOfRange=nullptr)=0
 
virtual bool inRange (const std::vector< _Bin > &values)=0
 
virtual std::vector< _Bin > clamp (const std::vector< _Bin > &values)=0
 
getBinContent (std::size_t bin)
 
getBinErrorLow (std::size_t bin)
 
getBinErrorHigh (std::size_t bin)
 
void setBinContent (std::size_t bin, T value)
 
void setBinErrorLow (std::size_t bin, T value)
 
void setBinErrorHigh (std::size_t bin, T value)
 
void setContent (const std::vector< _Bin > &values, T content)
 
size_t size () const
 

Protected Member Functions

 Histogram (std::size_t size)
 

Static Protected Member Functions

static size_t findBin (const std::vector< _Bin > &array, _Bin value)
 
static size_t findClosestBin (const std::vector< _Bin > &array, _Bin value, bool *outOfRange=nullptr)
 
static bool inRange (const std::vector< _Bin > &array, _Bin value)
 
static _Bin clamp (const std::vector< _Bin > &array, _Bin value)
 

Protected Attributes

std::size_t m_size
 
std::unique_ptr< T[]> m_values
 
std::unique_ptr< T[]> m_errors_low
 
std::unique_ptr< T[]> m_errors_high
 

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