Extracted at 2016-03-29.
pike.lysator.liu.se
[Top]
Public
Public.Xapian
Public.Xapian.Weight

Method Public.Xapian.Weight()->get_sumpart()


Method get_sumpart

float get_sumpart(int wdf, int len)

Description

Get a weight which is part of the sum over terms being performed.

This returns a weight for a given term and document. These weights are summed to give a total weight for the document.

Parameter wdf

the within document frequency of the term.

Parameter len

the (unnormalised) document length.

Returns