|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
The class IntHistogram1dC represents a histogram of integer scalar
values. It is possible set up a number of bins.
The histogram works on the interval <0, number_of_bins -1).
Parent Classes:
Variables:
- IntT minValue;
-
The minimum accepted value.
- IntT maxValue;
-
the maximum accepted value.
Methods:
- IntHistogram1dC(IntT n = 10)
-
Creates a histogram with all bins initialized to be zero.
The histogram is prepared to accept values in
the interval <0, n-1>.
- IntHistogram1dC(const IntHistogram1dC & vv)
-
Another access to the integer array 'vv'
Access to the object.
---------------------
- void Vote(IntT value)
-
Updates the histogram by adding another 'value'. The value
must be inside the interval
- void DVote(IndexT i)
-
Updates the histogram by adding another 'value' directly to
the bin with the index 'i'.
- void CheckedVote(IntT value)
-
Upddates the histogram by adding another 'value'. The values
outside the interval are ignored.
Extremal values
---------------
- IntMinMax1dC MinMax() const
-
Returns the extremal values of the histgram.
Mean and variance
-----------------
- Mean1dC Mean() const
-
Returns the sample mean of values registered in the histogram.
- LinearSums1dC LinSums() const
-
Returns the sums of the values represented by this histogram.
- ostream & operator<<(ostream & s,const IntHistogram1dC & arr)
-
|
Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|