A.I.M.S algorithms


aims::RegularBinnedHistogram< T > Class Template Reference

Histogram container class, with a specified number of regular bins. More...

#include <aims/histogram/regularBinnedHisto.h>

Inheritance diagram for aims::RegularBinnedHistogram< T >:
Collaboration diagram for aims::RegularBinnedHistogram< T >:

Public Member Functions

 RegularBinnedHistogram (unsigned bins=0)
 
 RegularBinnedHistogram (const RegularBinnedHistogram< T > &other)
 
virtual ~RegularBinnedHistogram ()
 
void doit (const AimsData< T > &thing)
 classical histogram computation function. More...
 
void doit (const AimsData< T > &thing, T mindataval, T maxdataval)
 
unsigned bins () const
 
void setBins (unsigned bins)
 
minDataValue () const
 
maxDataValue () const
 
std::vector< T > * unique (const AimsData< T > &thing) const
 
- Public Member Functions inherited from Histogram< T >
int minValid () const
 return the minimum valid (used) value of the histogram More...
 
int maxValid () const
 returnn the maximum valid (used) value of the histogram More...
 
int totalPoints () const
 return the total number of points in the histogram More...
 
 Histogram ()
 constructor. More...
 
 Histogram (const Histogram< T > &other)
 copy constructor. More...
 
virtual ~Histogram ()
 destructor. More...
 
AimsData< int32_t > & data ()
 return a reference to the data field of the histogram class. More...
 
const AimsData< int32_t > & data () const
 return a constant reference to the data field of the histogram class. More...
 
AimsData< int32_t >::iterator beginValid ()
 return the iterator to the first valid value of the histogram More...
 
AimsData< int32_t >::iterator endValid ()
 return the iterator to the last valid value of the histogram More...
 
AimsData< int32_t >::const_iterator beginValid () const
 return the constant iterator to the first valid value of the histogram More...
 
AimsData< int32_t >::const_iterator endValid () const
 return the constant iterator to the last valid value of the histogram More...
 

Additional Inherited Members

- Protected Attributes inherited from Histogram< T >
int _nPoints
 total number of points More...
 
int _minValid
 minimum used value More...
 
int _maxValid
 maximum used value More...
 
AimsData< int32_t > _data
 histogram datas More...
 

Detailed Description

template<typename T>
class aims::RegularBinnedHistogram< T >

Histogram container class, with a specified number of regular bins.

Definition at line 48 of file regularBinnedHisto.h.

Constructor & Destructor Documentation

template<typename T >
aims::RegularBinnedHistogram< T >::RegularBinnedHistogram ( unsigned  bins = 0)
inline

Definition at line 75 of file regularBinnedHisto.h.

template<typename T >
aims::RegularBinnedHistogram< T >::RegularBinnedHistogram ( const RegularBinnedHistogram< T > &  other)
inline

Definition at line 82 of file regularBinnedHisto.h.

template<typename T>
virtual aims::RegularBinnedHistogram< T >::~RegularBinnedHistogram ( )
inlinevirtual

Definition at line 54 of file regularBinnedHisto.h.

Member Function Documentation

template<typename T>
unsigned aims::RegularBinnedHistogram< T >::bins ( ) const
inline

Definition at line 61 of file regularBinnedHisto.h.

template<typename T >
void aims::RegularBinnedHistogram< T >::doit ( const AimsData< T > &  thing)
inlinevirtual

classical histogram computation function.

Reimplemented from Histogram< T >.

Definition at line 99 of file regularBinnedHisto.h.

References AimsData< T >::maximum(), and AimsData< T >::minimum().

Referenced by AimsEMThreshold< T, U >::processEMThresholds().

template<typename T >
void aims::RegularBinnedHistogram< T >::doit ( const AimsData< T > &  thing,
mindataval,
maxdataval 
)
inline
template<typename T>
T aims::RegularBinnedHistogram< T >::maxDataValue ( ) const
inline

Definition at line 64 of file regularBinnedHisto.h.

template<typename T>
T aims::RegularBinnedHistogram< T >::minDataValue ( ) const
inline

Definition at line 63 of file regularBinnedHisto.h.

template<typename T >
void aims::RegularBinnedHistogram< T >::setBins ( unsigned  bins)
inline

Definition at line 91 of file regularBinnedHisto.h.

template<typename T >
std::vector< T > * aims::RegularBinnedHistogram< T >::unique ( const AimsData< T > &  thing) const
inline

Definition at line 149 of file regularBinnedHisto.h.

References AimsData< T >::begin(), and AimsData< T >::end().


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