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

PageRankSampler Class Reference

A WebSampler which implements the standard PageRank chain. More...

#include <sampler.h>

Inheritance diagram for PageRankSampler:

Inheritance graph
[legend]
Collaboration diagram for PageRankSampler:

Collaboration graph
[legend]
List of all members.

Public Methods

 PageRankSampler (WebLinkGraph *agraph)
void SetParameters (double epsilon)
WebNodePtr QEvolveFrom (WebNodePtr x)
 Returns the effect of a single random transition. If result is NULL, this means the new state is a LeafNode. More...

virtual char * Name (char *buf)
 returns an identifying string in supplied buffer. More...


Detailed Description

A WebSampler which implements the standard PageRank chain.

Definition at line 91 of file sampler.h.


Constructor & Destructor Documentation

PageRankSampler::PageRankSampler WebLinkGraph   agraph
 

Definition at line 306 of file sampler.cc.

References WebSampler::eps.


Member Function Documentation

char * PageRankSampler::Name char *    buf [virtual]
 

returns an identifying string in supplied buffer.

Implements WebSampler.

Definition at line 337 of file sampler.cc.

References WebSampler::eps.

WebNodePtr PageRankSampler::QEvolveFrom WebNodePtr    x [inline, virtual]
 

Returns the effect of a single random transition. If result is NULL, this means the new state is a LeafNode.

Reimplemented from WebSampler.

Definition at line 319 of file sampler.cc.

References NULL, WebNode::NumberOfLeafLinks(), WebNode::NumberOfValidToLinks(), WebSampler::r, WebNode::ValidLeafLinkDirectly(), WebNode::ValidToLink(), and WebSampler::xleaf.

void PageRankSampler::SetParameters double    epsilon
 

Definition at line 310 of file sampler.cc.

References WebSampler::ClearCounts(), WebSampler::eps, and WebSampler::graph.

Referenced by Talker::ProcessCommand().


Generated on Wed May 29 11:37:26 2002 for MarkovPR by doxygen1.2.15