#include <weightinternal.h>
Public Member Functions | |
Internal (const Stats &stats) | |
Create a Weight::Internal object with global statistics. | |
Internal (const Stats &stats, const std::string &tname) | |
Create a Weight::Internal object with global and term statistics. | |
Public Attributes | |
Xapian::doccount | collection_size |
Number of documents in the collection. | |
Xapian::doccount | rset_size |
Number of relevant documents in the collection. | |
Xapian::doclength | average_length |
Average length of documents in the collection. | |
Xapian::doccount | termfreq |
Term frequency. | |
Xapian::doccount | reltermfreq |
Relevant term frequency. |
Definition at line 31 of file weightinternal.h.
Xapian::Weight::Internal::Internal | ( | const Stats & | stats | ) |
Create a Weight::Internal object with global statistics.
All term-specific statistics will be set to 0.
stats | Object containing the statistics to use. |
Definition at line 28 of file weightinternal.cc.
Xapian::Weight::Internal::Internal | ( | const Stats & | stats, | |
const std::string & | tname | |||
) |
Create a Weight::Internal object with global and term statistics.
stats | Object containing the statistics to use. | |
tname | The term to read the term-specific statistics for. |
Number of documents in the collection.
Definition at line 34 of file weightinternal.h.
Referenced by Xapian::TradWeight::calc_termweight(), and Xapian::BM25Weight::calc_termweight().
Number of relevant documents in the collection.
Definition at line 37 of file weightinternal.h.
Referenced by Xapian::TradWeight::calc_termweight(), and Xapian::BM25Weight::calc_termweight().
Term frequency.
ie, number of documents that the term for this weight object occurs in.
Definition at line 47 of file weightinternal.h.
Relevant term frequency.
ie, number of relevant documents that the term for this weight object occurs in.
Definition at line 54 of file weightinternal.h.