small changed needed for allowing derivation of extended classes

This commit is contained in:
Paolo Cignoni 2010-09-13 09:42:25 +00:00
parent 56fe9a828b
commit d263446d0e
1 changed files with 2 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class Histogram
{
// public data members
private:
protected:
std::vector <int> H; //! Counters for bins.
std::vector <ScalarType> R; //! Range for bins.
@ -235,6 +235,7 @@ public:
void Add(ScalarType v);
int MaxCount() const;
int BinNum() const {return n;};
int BinCount(ScalarType v);
int BinCountInd(int index) {return H[index];}
int BinCount(ScalarType v, ScalarType width);