Xapian::Internal::ExpandStats Class Reference

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

#include <expandweight.h>

Collaboration diagram for Xapian::Internal::ExpandStats:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExpandStats (Xapian::doclength avlen_, double expand_k_)
void accumulate (Xapian::termcount wdf, Xapian::termcount 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::termcount  doclen,
Xapian::doccount  subtf,
Xapian::doccount  subdbsize 
) [inline]


Member Data Documentation

Definition at line 40 of file expandweight.h.

Referenced by accumulate().

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().

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

Definition at line 37 of file expandweight.h.

Referenced by accumulate().

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(), and Xapian::Internal::ExpandWeight::get_weight().

Parameter 'k' in the probabilistic expand weighting formula.

Definition at line 43 of file expandweight.h.

Referenced by accumulate().

Factor to multiply w(t) by.

Definition at line 53 of file expandweight.h.

Referenced by accumulate(), and Xapian::Internal::ExpandWeight::get_weight().

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

Definition at line 56 of file expandweight.h.

Referenced by accumulate(), and Xapian::Internal::ExpandWeight::get_weight().

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

Definition at line 50 of file expandweight.h.

Referenced by accumulate(), and Xapian::Internal::ExpandWeight::get_weight().


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

Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.