35 #ifndef AIMS_HISTOGRAM_HISTOGRAM_H
36 #define AIMS_HISTOGRAM_HISTOGRAM_H
103 friend std::ostream& operator << <> ( std::ostream& os,
121 template<
class T >
inline
123 : _nPoints( 0 ), _minValid( 0 ), _maxValid( 0 )
128 template<
class T >
inline
130 : _nPoints( other._nPoints ), _minValid( other._minValid ),
131 _maxValid( other._maxValid )
137 template <
class T >
inline
140 os <<
"{nPoints=" << thing.
_nPoints <<
",";
141 os <<
"minValid=" << thing.
_minValid <<
",";
142 os <<
"maxValid=" << thing.
_maxValid <<
",";
143 os <<
"data=" << thing.
_data <<
"}";
Base class of histogram container class.
int32_t * endValid() const
return the constant iterator to the last valid value of the histogram
int minValid() const
return the minimum valid (used) value of the histogram
carto::VolumeRef< int32_t > _data
histogram datas
int _minValid
minimum used value
int32_t * beginValid() const
return the constant iterator to the first valid value of the histogram
int32_t * beginValid()
return the iterator to the first valid value of the histogram
virtual ~Histogram()
destructor.
carto::VolumeRef< int32_t > & data()
return a reference to the data field of the histogram class.
int _nPoints
total number of points
int _maxValid
maximum used value
virtual void doit(const carto::rc_ptr< carto::Volume< T > > &)
the histogram computation function.
int totalPoints() const
return the total number of points in the histogram
int32_t * endValid()
return the iterator to the last valid value of the histogram
const carto::VolumeRef< int32_t > & data() const
return a constant reference to the data field of the histogram class.
int maxValid() const
returnn the maximum valid (used) value of the histogram
VolumeRef< T > deepcopy() const
const T & at(long x, long y=0, long z=0, long t=0) const
std::ostream & operator<<(std::ostream &os, const Histogram< T > &thing)