35 #ifndef AIMS_HISTOGRAM_HISTOGRAM_H 36 #define AIMS_HISTOGRAM_HISTOGRAM_H 45 std::ostream& operator << ( std::ostream& os, const Histogram<T>& thing );
102 friend std::ostream& operator << <> ( std::ostream& os,
121 template<
class T >
inline 128 template<
class T >
inline 137 template <
class T >
inline 138 std::ostream& operator << ( std::ostream& os, const Histogram<T>& thing )
140 os <<
"{nPoints=" << thing._nPoints <<
",";
141 os <<
"minValid=" << thing._minValid <<
",";
142 os <<
"maxValid=" << thing._maxValid <<
",";
143 os <<
"data=" << thing._data <<
"}";
virtual ~Histogram()
destructor.
int maxValid() const
returnn the maximum valid (used) value of the histogram
int _nPoints
total number of points
AimsData< int32_t >::iterator endValid()
return the iterator to the last valid value of the histogram
int minValid() const
return the minimum valid (used) value of the histogram
AimsData< int32_t > & data()
return a reference to the data field of the histogram class.
int _minValid
minimum used value
int _maxValid
maximum used value
virtual void doit(const AimsData< T > &)
the histogram computation function.
AimsData< int32_t > clone() const
Base class of histogram container class.
AimsData< int32_t >::const_iterator beginValid() const
return the constant iterator to the first valid value of the histogram
AimsData< int32_t > _data
histogram datas
AimsData< int32_t >::const_iterator endValid() const
return the constant iterator to the last valid value of the histogram
AimsData< int32_t >::iterator beginValid()
return the iterator to the first valid value of the histogram
int totalPoints() const
return the total number of points in the histogram
const AimsData< int32_t > & data() const
return a constant reference to the data field of the histogram class.