graphgen::estimator Class Reference
[Estimate]

Estimator base class. More...

#include <estimate.hpp>

Inheritance diagram for graphgen::estimator:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void measure (const undirected_graph &)=0
 Measure the property on the given graph.
int measurements ()
 Return the number of accumulated measurements.
estimatoroperator<< (const undirected_graph &graph)
 Measure & accumulate graph operator.

Protected Member Functions

virtual std::ostream & print (std::ostream &) const =0
 Virtual output method.

Protected Attributes

int count

Friends

std::ostream & operator<< (std::ostream &, const estimator &)


Detailed Description

Estimator base class.

The estimator classes are used to quantify properties of graphs in a statistical ensemble.


Member Function Documentation

virtual std::ostream& graphgen::estimator::print ( std::ostream &   )  const [protected, pure virtual]

Virtual output method.

Must be overwritten by a specific estimator to enable output to a stream

virtual void graphgen::estimator::measure ( const undirected_graph  )  [pure virtual]

Measure the property on the given graph.

Must be overwritten by a specific estimator.

Implemented in graphgen::degreedist, graphgen::distancedist, and graphgen::clusteringglobal.

Referenced by operator<<().

estimator& graphgen::estimator::operator<< ( const undirected_graph graph  )  [inline]

Measure & accumulate graph operator.

This enables to say

 estimator << graph; 

References measure().


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

Generated on Wed Jun 2 14:49:09 2010 for GraphGen by  doxygen 1.5.6