THistogramFeeder< unsigned char > Class Template Reference

specialization of the THistogramFeeder for unsigned byte input data More...

#include <mia/core/histogram.hh>

Public Types

typedef unsigned char value_type
 typedef for generic programming More...
 

Public Member Functions

size_t index (unsigned char x) const
 
size_t size () const
 
 THistogramFeeder (unsigned char min, unsigned char max, size_t bins)
 Construct the feeder, the parameters are ignored. More...
 
unsigned char value (size_t k) const
 

Detailed Description

template<>
class THistogramFeeder< unsigned char >

specialization of the THistogramFeeder for unsigned byte input data

This specialization always uses the full range [0,256) of the input data and 256 bins.

Remarks
is this really a good idea to specialize the histogram like this, because so it is not possible to use a different number of bins for unsigned byte

Definition at line 99 of file histogram.hh.

Member Typedef Documentation

◆ value_type

typedef unsigned char THistogramFeeder< unsigned char >::value_type

typedef for generic programming

Definition at line 102 of file histogram.hh.

Constructor & Destructor Documentation

◆ THistogramFeeder()

THistogramFeeder< unsigned char >::THistogramFeeder ( unsigned char  min,
unsigned char  max,
size_t  bins 
)
inline

Construct the feeder, the parameters are ignored.

Definition at line 266 of file histogram.hh.

Member Function Documentation

◆ index()

size_t THistogramFeeder< unsigned char >::index ( unsigned char  x) const
inline
Returns
x

Definition at line 276 of file histogram.hh.

◆ size()

size_t THistogramFeeder< unsigned char >::size ( ) const
inline
Returns
256

Definition at line 270 of file histogram.hh.

◆ value()

unsigned char THistogramFeeder< unsigned char >::value ( size_t  k) const
inline
Returns
k

Definition at line 282 of file histogram.hh.


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