shawn::DegreeHistogram Class Reference

#include <degree_histogram.h>

Collaboration diagram for shawn::DegreeHistogram:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Setup and Init
 DegreeHistogram ()
virtual ~DegreeHistogram ()
virtual void set_world (const World &) throw ()
 call *before* init()!
virtual void init (void) throw ()
 initializes histogram, not to be called twice
Access
const Worldworld (void) const throw ()
int value (int) const throw ()
 value for the given degree
int range_value (int lo, int hi) const throw ()
 sum_{i=lo}^{hi} value(i) (bounds inclusive!)
int max_degree (void) const throw ()
 largest value for which value() is nonzero
int total_weight (void) const throw ()
 equals range_value(0,infinity) resp. degree sum resp. double edge count
int peak_degree (void) const throw ()
 a degree for which value(peak_degree()) is maximal

Protected Member Functions

virtual void encounter (int) throw ()

Friends

std::ostream & operator<< (std::ostream &, const DegreeHistogram &) throw ()


Constructor & Destructor Documentation

shawn::DegreeHistogram::DegreeHistogram (  ) 

virtual shawn::DegreeHistogram::~DegreeHistogram (  )  [virtual]


Member Function Documentation

virtual void shawn::DegreeHistogram::set_world ( const World  )  throw () [virtual]

call *before* init()!

virtual void shawn::DegreeHistogram::init ( void   )  throw () [virtual]

initializes histogram, not to be called twice

const World& shawn::DegreeHistogram::world ( void   )  const throw ()

int shawn::DegreeHistogram::value ( int   )  const throw ()

value for the given degree

int shawn::DegreeHistogram::range_value ( int  lo,
int  hi 
) const throw ()

sum_{i=lo}^{hi} value(i) (bounds inclusive!)

int shawn::DegreeHistogram::max_degree ( void   )  const throw ()

largest value for which value() is nonzero

int shawn::DegreeHistogram::total_weight ( void   )  const throw ()

equals range_value(0,infinity) resp. degree sum resp. double edge count

int shawn::DegreeHistogram::peak_degree ( void   )  const throw ()

a degree for which value(peak_degree()) is maximal

virtual void shawn::DegreeHistogram::encounter ( int   )  throw () [protected, virtual]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const DegreeHistogram  
) throw () [friend]


The documentation for this class was generated from the following file:

Generated on Sun Feb 5 00:00:58 2012 for Shawn by  doxygen 1.5.6