comparison dsp/maths/Histogram.h @ 4:14839f9a616e

* fix compile error with gcc-4.1
author cannam
date Wed, 26 Jul 2006 20:22:43 +0000
parents d7116e3183f8
children
comparison
equal deleted inserted replaced
3:07ac3de1e53b 4:14839f9a616e
134 static void getMoments(const std::vector<T>& data, TOut& ave, TOut& adev, TOut& sdev, TOut& var, TOut& skew, TOut& kurt); 134 static void getMoments(const std::vector<T>& data, TOut& ave, TOut& adev, TOut& sdev, TOut& var, TOut& skew, TOut& kurt);
135 135
136 //! return number of containers 136 //! return number of containers
137 unsigned int getSize() const { return m_counters.size();}; 137 unsigned int getSize() const { return m_counters.size();};
138 //! returns i-th counter 138 //! returns i-th counter
139 unsigned int operator [] (unsigned int i) const { ASSERT( i < m_counters.size() ); return m_counters[i];}; 139 unsigned int operator [] (unsigned int i) const {
140 // ASSERT( i < m_counters.size() );
141 return m_counters[i];
142 };
140 //! return the computed histogram 143 //! return the computed histogram
141 const std::vector<unsigned int>& geTHistogram() const { return m_counters;}; 144 const std::vector<unsigned int>& geTHistogram() const { return m_counters;};
142 //! return the computed histogram, in TOuts 145 //! return the computed histogram, in TOuts
143 std::vector<TOut> geTHistogramD() const; 146 std::vector<TOut> geTHistogramD() const;
144 /*! return the normalized computed histogram 147 /*! return the normalized computed histogram