Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

RazorBack::Distrapprox_::Bin_ Class Reference

A Bin_ object represents the i:th histogram bin. More...

#include <Distrapprox.hh>

List of all members.

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>".


Detailed Description

A Bin_ object represents the i:th histogram bin.

All bins are Width wide (see enclosing class for details).

Definition at line 51 of file Distrapprox.hh.


Constructor & Destructor Documentation

RazorBack::Distrapprox_::Bin_::Bin_ ( int i = 0 ) [inline, explicit]
 

Constructs the i:th bin (default 0).

Definition at line 63 of file Distrapprox.hh.


Member Function Documentation

int RazorBack::Distrapprox_::Bin_::index ( ) const [inline]
 

Returns the index of the bin.

Definition at line 66 of file Distrapprox.hh.

Referenced by operator<().

unsigned int RazorBack::Distrapprox_::Bin_::count ( ) const [inline]
 

Returns the no. of samples in the bin.

Definition at line 69 of file Distrapprox.hh.

bool RazorBack::Distrapprox_::Bin_::operator< ( const Bin_ & B ) [inline]
 

Comparison according to index.

Definition at line 72 of file Distrapprox.hh.

Bin_ & RazorBack::Distrapprox_::Bin_::operator++ ( ) [inline]
 

Prefix increment: adds 1 to the bin count.

Definition at line 75 of file Distrapprox.hh.


Friends And Related Function Documentation

ostream & operator<< ( ostream & Out,
const Bin_ & B ) [friend]
 

Output: the format is "<index> <count>".

Definition at line 78 of file Distrapprox.hh.

istream & operator>> ( istream & In,
Bin_ & B ) [friend]
 

Input: the format is "<index> <count>".

Definition at line 85 of file Distrapprox.hh.


Member Data Documentation

int RazorBack::Distrapprox_::Bin_::Idx [private]
 

the bin index (can be negative).

Definition at line 56 of file Distrapprox.hh.

unsigned int RazorBack::Distrapprox_::Bin_::Count [private]
 

no. of samples falling into the bin.

Definition at line 57 of file Distrapprox.hh.


The documentation for this class was generated from the following file:
Generated at Wed Aug 21 09:33:15 2002 for The Razorback C++ Library: Statistics by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001