Pottu
Public Types | Public Member Functions | Public Attributes | List of all members
pottu::BinnerPow2< V > Class Template Reference

Binner for histograms with integer values and bin counts of powers of two. More...

#include <binners.hpp>

Public Types

typedef V value_type
 

Public Member Functions

 BinnerPow2 (value_type high_bits, value_type bins_bits)
 
 BinnerPow2 (const BinnerPow2 &o)=default
 
 BinnerPow2 (BinnerPow2 &&o)=default
 
BinnerPow2operator= (const BinnerPow2 &o)=default
 
BinnerPow2operator= (BinnerPow2 &&o)=default
 
value_type low () const
 
value_type high () const
 
unsigned int binCount () const
 
int operator() (value_type v) const noexcept
 
bool isUnderflow (value_type v) const noexcept
 
bool isOverflow (value_type v) const noexcept
 
value_type binWidth () const
 
value_type binLow (unsigned int i) const
 
value_type binHigh (unsigned int i) const
 
double binCenter (unsigned int i) const
 

Public Attributes

value_type _high_bits
 
value_type _bins_bits
 
value_type _div_bits
 

Detailed Description

template<class V>
class pottu::BinnerPow2< V >

Binner for histograms with integer values and bin counts of powers of two.


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