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

DateBiasedPageRankSampler Class Reference

A WebSampler which implements page ranking by taking into account the relative age of linked-to documents. More...

#include <sampler.h>

Inheritance diagram for DateBiasedPageRankSampler:

Inheritance graph
[legend]
Collaboration diagram for DateBiasedPageRankSampler:

Collaboration graph
[legend]
List of all members.

Public Methods

 DateBiasedPageRankSampler (WebLinkGraph *agraph)
void SetParameters (double epsilon, double lambda, uint16 daterange)
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...


Private Attributes

double lam
float lamhat
uint16 daterange

Detailed Description

A WebSampler which implements page ranking by taking into account the relative age of linked-to documents.

Definition at line 119 of file sampler.h.


Constructor & Destructor Documentation

DateBiasedPageRankSampler::DateBiasedPageRankSampler WebLinkGraph   agraph
 

Definition at line 344 of file sampler.cc.

References daterange, WebSampler::eps, kuint16max, lam, lamhat, and ScratchStruct.


Member Function Documentation

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

returns an identifying string in supplied buffer.

Implements WebSampler.

Definition at line 427 of file sampler.cc.

References WebSampler::eps, and lam.

WebNodePtr DateBiasedPageRankSampler::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 368 of file sampler.cc.

References LeafNode::Date(), WebNode::Date(), lamhat, DBScratchStruct::mass, NULL, WebNode::NumberOfLeafLinks(), WebNode::NumberOfValidToLinks(), WebSampler::r, WebNode::Scratch(), WebNode::SetScratch(), DBScratchStruct::ss, WebNode::ValidLeafLink(), WebNode::ValidLeafLinkDirectly(), WebNode::ValidToLink(), and WebSampler::xleaf.

void DateBiasedPageRankSampler::SetParameters double    epsilon,
double    lambda,
uint16    daterange
 

Definition at line 354 of file sampler.cc.

References WebSampler::ClearCounts(), daterange, WebSampler::eps, WebSampler::graph, lam, lamhat, and uint16.

Referenced by Talker::ProcessCommand().


Member Data Documentation

uint16 DateBiasedPageRankSampler::daterange [private]
 

Definition at line 128 of file sampler.h.

Referenced by DateBiasedPageRankSampler(), and SetParameters().

double DateBiasedPageRankSampler::lam [private]
 

Definition at line 126 of file sampler.h.

Referenced by DateBiasedPageRankSampler(), Name(), and SetParameters().

float DateBiasedPageRankSampler::lamhat [private]
 

Definition at line 127 of file sampler.h.

Referenced by DateBiasedPageRankSampler(), QEvolveFrom(), and SetParameters().


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