aimsalgo  5.0.5
Neuroimaging image processing
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, size_t abort_max=0) 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 50 of file regularBinnedHisto.h.

Constructor & Destructor Documentation

◆ RegularBinnedHistogram() [1/2]

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

Definition at line 78 of file regularBinnedHisto.h.

◆ RegularBinnedHistogram() [2/2]

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

Definition at line 85 of file regularBinnedHisto.h.

◆ ~RegularBinnedHistogram()

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

Definition at line 56 of file regularBinnedHisto.h.

References aims::RegularBinnedHistogram< T >::doit().

Member Function Documentation

◆ bins()

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

◆ doit() [1/2]

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

classical histogram computation function.

Reimplemented from Histogram< T >.

Definition at line 102 of file regularBinnedHisto.h.

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

Referenced by AimsEMThreshold< T, U >::processEMThresholds(), and aims::RegularBinnedHistogram< T >::~RegularBinnedHistogram().

◆ doit() [2/2]

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

◆ maxDataValue()

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

Definition at line 66 of file regularBinnedHisto.h.

References aims::RegularBinnedHistogram< T >::unique().

◆ minDataValue()

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

Definition at line 65 of file regularBinnedHisto.h.

◆ setBins()

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

◆ unique()

template<typename T >
std::vector< T > * aims::RegularBinnedHistogram< T >::unique ( const AimsData< T > &  thing,
size_t  abort_max = 0 
) const
inline

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