Xapian::Internal::ExpandStats Class Reference

Collates statistics while calculating term weight in an ESet. More...

#include <expandweight.h>

List of all members.

Public Member Functions

 ExpandStats (Xapian::doclength avlen_, double expand_k_)
void accumulate (Xapian::termcount wdf, Xapian::doclength doclen, Xapian::doccount subtf, Xapian::doccount subdbsize)

Public Attributes

Xapian::doccount dbsize
 Size of the subset of a multidb to which the value in termfreq applies.
Xapian::doccount termfreq
 Term frequency (for a multidb, may be for a subset of the databases).
Xapian::weight multiplier
 Factor to multiply w(t) by.
Xapian::doccount rtermfreq
 The number of documents from the RSet indexed by the current term (r).
size_t db_index
 Keeps track of the index of the sub-database we're accumulating for.

Private Attributes

std::vector< bool > dbs_seen
Xapian::doclength avlen
double expand_k
 Parameter 'k' in the probabilistic expand weighting formula.


Detailed Description

Collates statistics while calculating term weight in an ESet.

Definition at line 35 of file expandweight.h.


Constructor & Destructor Documentation

Xapian::Internal::ExpandStats::ExpandStats ( Xapian::doclength  avlen_,
double  expand_k_ 
) [inline]

Definition at line 61 of file expandweight.h.


Member Function Documentation

void Xapian::Internal::ExpandStats::accumulate ( Xapian::termcount  wdf,
Xapian::doclength  doclen,
Xapian::doccount  subtf,
Xapian::doccount  subdbsize 
) [inline]

Definition at line 66 of file expandweight.h.

References avlen, db_index, dbs_seen, dbsize, expand_k, multiplier, rtermfreq, and termfreq.

Referenced by NetworkTermList::accumulate_stats(), QuartzTermList::accumulate_stats(), InMemoryTermList::accumulate_stats(), and FlintTermList::accumulate_stats().


Member Data Documentation

std::vector<bool> Xapian::Internal::ExpandStats::dbs_seen [private]

Definition at line 37 of file expandweight.h.

Referenced by accumulate().

Xapian::doclength Xapian::Internal::ExpandStats::avlen [private]

Definition at line 40 of file expandweight.h.

Referenced by accumulate().

double Xapian::Internal::ExpandStats::expand_k [private]

Parameter 'k' in the probabilistic expand weighting formula.

Definition at line 43 of file expandweight.h.

Referenced by accumulate().

Xapian::doccount Xapian::Internal::ExpandStats::dbsize

Size of the subset of a multidb to which the value in termfreq applies.

Definition at line 47 of file expandweight.h.

Referenced by accumulate().

Xapian::doccount Xapian::Internal::ExpandStats::termfreq

Term frequency (for a multidb, may be for a subset of the databases).

Definition at line 50 of file expandweight.h.

Referenced by accumulate().

Xapian::weight Xapian::Internal::ExpandStats::multiplier

Factor to multiply w(t) by.

Definition at line 53 of file expandweight.h.

Referenced by accumulate().

Xapian::doccount Xapian::Internal::ExpandStats::rtermfreq

The number of documents from the RSet indexed by the current term (r).

Definition at line 56 of file expandweight.h.

Referenced by accumulate().

size_t Xapian::Internal::ExpandStats::db_index

Keeps track of the index of the sub-database we're accumulating for.

Definition at line 59 of file expandweight.h.

Referenced by accumulate(), and MultiTermList::accumulate_stats().


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.