#include <degree_histogram.h>

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 World & | world (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 () |
| shawn::DegreeHistogram::DegreeHistogram | ( | ) |
| virtual shawn::DegreeHistogram::~DegreeHistogram | ( | ) | [virtual] |
| 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] |
| std::ostream& operator<< | ( | std::ostream & | , | |
| const DegreeHistogram & | ||||
| ) | throw () [friend] |
1.5.6