#include <Distrapprox.hh>
Public Methods | |
Bin_ (int i=0) | |
Constructs the i:th bin (default 0). | |
int | index () const |
Returns the index of the bin. | |
unsigned int | count () const |
Returns the no. of samples in the bin. | |
bool | operator< (const Bin_ &B) |
Comparison according to index. | |
Bin_& | operator++ () |
Prefix increment: adds 1 to the bin count. | |
Private Attributes | |
int | Idx |
the bin index (can be negative). | |
unsigned int | Count |
no. of samples falling into the bin. | |
Friends | |
ostream& | operator<< (ostream &Out, const Bin_ &B) |
Output: the format is "<index> <count>". | |
istream& | operator>> (istream &In, Bin_ &B) |
Input: the format is "<index> <count>". |
All bins are Width wide (see enclosing class for details).
Definition at line 51 of file Distrapprox.hh.
|
Constructs the i:th bin (default 0).
Definition at line 63 of file Distrapprox.hh. |
|
Returns the index of the bin.
Definition at line 66 of file Distrapprox.hh. Referenced by operator<(). |
|
Returns the no. of samples in the bin.
Definition at line 69 of file Distrapprox.hh. |
|
Comparison according to index.
Definition at line 72 of file Distrapprox.hh. |
|
Prefix increment: adds 1 to the bin count.
Definition at line 75 of file Distrapprox.hh. |
|
Output: the format is "<index> <count>".
Definition at line 78 of file Distrapprox.hh. |
|
Input: the format is "<index> <count>".
Definition at line 85 of file Distrapprox.hh. |
|
the bin index (can be negative).
Definition at line 56 of file Distrapprox.hh. |
|
no. of samples falling into the bin.
Definition at line 57 of file Distrapprox.hh. |