| 
    xapian-core
    1.4.29
    
   | 
 
Collates statistics while calculating term weight in an ESet. More...
#include <expandweight.h>
 Collaboration diagram for Xapian::Internal::ExpandStats:Public Member Functions | |
| ExpandStats (Xapian::doclength avlen_) | |
| Constructor for expansion schemes which do not require the "expand_k" parameter.  More... | |
| ExpandStats (Xapian::doclength avlen_, double expand_k_) | |
| Constructor for expansion schemes which require the "expand_k" parameter.  More... | |
| void | accumulate (size_t shard_index, Xapian::termcount wdf, Xapian::termcount doclen, Xapian::doccount subtf, Xapian::doccount subdbsize) | 
| void | clear_stats () | 
Public Attributes | |
| Xapian::doccount | dbsize | 
| Size of the subset of a multidb to which the value in termfreq applies.  More... | |
| Xapian::doccount | termfreq | 
| Term frequency (for a multidb, may be for a subset of the databases).  More... | |
| Xapian::termcount | rcollection_freq | 
| The number of times the term occurs in the rset.  More... | |
| Xapian::doccount | rtermfreq | 
| The number of documents from the RSet indexed by the current term (r).  More... | |
| double | multiplier | 
| The multiplier to be used in TradWeight query expansion.  More... | |
Private Attributes | |
| std::vector< bool > | dbs_seen | 
| Which databases in a multidb are included in termfreq.  More... | |
| Xapian::doclength | avlen | 
| Average document length in the whole database.  More... | |
| double | expand_k | 
| The parameter k to be used for TradWeight query expansion.  More... | |
Collates statistics while calculating term weight in an ESet.
Definition at line 37 of file expandweight.h.
      
  | 
  inlineexplicit | 
Constructor for expansion schemes which do not require the "expand_k" parameter.
Definition at line 65 of file expandweight.h.
      
  | 
  inline | 
Constructor for expansion schemes which require the "expand_k" parameter.
Definition at line 71 of file expandweight.h.
      
  | 
  inline | 
Definition at line 76 of file expandweight.h.
References rtermfreq.
Referenced by ChertTermList::accumulate_stats(), NetworkTermList::accumulate_stats(), GlassTermList::accumulate_stats(), and InMemoryTermList::accumulate_stats().
      
  | 
  inline | 
Definition at line 102 of file expandweight.h.
      
  | 
  private | 
Average document length in the whole database.
Definition at line 42 of file expandweight.h.
Referenced by Xapian::Internal::ExpandWeight::get_avlen().
      
  | 
  private | 
Which databases in a multidb are included in termfreq.
Definition at line 39 of file expandweight.h.
| Xapian::doccount Xapian::Internal::ExpandStats::dbsize | 
Size of the subset of a multidb to which the value in termfreq applies.
Definition at line 49 of file expandweight.h.
Referenced by Xapian::Internal::ExpandWeight::get_dbsize().
      
  | 
  private | 
The parameter k to be used for TradWeight query expansion.
Definition at line 45 of file expandweight.h.
| double Xapian::Internal::ExpandStats::multiplier | 
The multiplier to be used in TradWeight query expansion.
Definition at line 61 of file expandweight.h.
| Xapian::termcount Xapian::Internal::ExpandStats::rcollection_freq | 
The number of times the term occurs in the rset.
Definition at line 55 of file expandweight.h.
| Xapian::doccount Xapian::Internal::ExpandStats::rtermfreq | 
The number of documents from the RSet indexed by the current term (r).
Definition at line 58 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 52 of file expandweight.h.