35 #ifndef AIMS_HISTOGRAM_CUMULATED_H 36 #define AIMS_HISTOGRAM_CUMULATED_H 71 template<
class T >
inline 81 template<
class T >
inline 90 res( 0 ) = thing.
data()( 0 );
95 *out = *in + *( out - 1 );
101 template<
class T >
inline 105 int realValue = (int) ( this->
_nPoints * percent / 100. );
108 while ( *it < realValue && it != this->
_data.
end() )
virtual ~CumulatedHistogram()
destructor
int maxValid() const
returnn the maximum valid (used) value of the histogram
int _nPoints
total number of points
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
Classical histogram container class.
CumulatedHistogram()
Constructors and destructor.
CumulatedHistogram(const CumulatedHistogram< T > &other)
copy constructor
Base class of histogram container class.
AimsData< int32_t > _data
histogram datas
void doit(const AimsData< T > &thing)
classical histogram computation function.
void doit(const AimsData< T > &thing)
computation from an AimsData
int totalPoints() const
return the total number of points in the histogram
int valueForPercentage(float)
return the bin value for a given percentage