33 DiceWeight::clone()
const
39 DiceWeight::init(
double factor)
47 numerator = get_wqf() * 2 * factor;
70 auto denominator = get_query_length() + get_unique_terms_lower_bound();
71 upper_bound = numerator / denominator;
81 DiceWeight::serialise()
const
87 DiceWeight::unserialise(
const string& s)
const
89 if (
rare(!s.empty())) {
91 "DiceWeight::unserialise()");
102 return numerator / (get_query_length() + uniqterms);
106 DiceWeight::get_maxpart()
const
112 DiceWeight::create_from_parameters(
const char*
p)
const
Xapian::Weight subclass implementing Dice Coefficient.
InvalidArgumentError indicates an invalid parameter value was passed to the API.
Indicates an error in the std::string serialisation of an object.
Hierarchy of classes which Xapian can throw as exceptions.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.