#include <estimate.hpp>
Public Member Functions | |
degreedist (qint qmax) | |
Create the estimator with a Histogram for k in [0,qmax ]. | |
void | measure (const undirected_graph &G) |
Measure all degrees of the graph g . | |
void | operator() (const undirected_graph &G) |
const histogram & | Hist () const |
return reference to degree histogram | |
const histogram & | MaxH () const |
return reference to maximal degree histogram | |
const histint & | operator[] (qint q) const |
access histogram entries H(q ) | |
qint | kmax () const |
return maximal degree in histogram |
Measurements update a degree histogram
graphgen::degreedist::degreedist | ( | qint | qmax | ) | [inline] |
Create the estimator with a Histogram for k in [0,qmax
].
As measure(g) does no bounds checking, choose qmax sufficently large, for example to the (maximum) number of links in the graph