Yeah I do realize now that it is confusing.Will change it.Thanks.

On Tue, Mar 12, 2013 at 1:47 AM, Olly Betts <notifications@github.com>wrote:

> In xapian-core/weight/tfidfweight.cc:
>
> > +
> > +double
> > +TfIdfWeight::get_maxextra() const
> > +{
> > +    return 0;
> > +}
> > +
> > +// Return normalized tf,idf and weight depending on the normalization string
> > +double
> > +TfIdfWeight:: get_tfn(Xapian::termcount tf, const char c) const
> > +{
> > +    switch (c) {
> > +        case 'N':
> > +            return tf;
> > +        case 'B':
> > +            if (tf==0) return 0;
>
> Oh, I see!
>
> I would probably go with wdfn and wdf as variable names then, as
> "termfreq" and "tf" are widely used in Xapian to mean "number of documents
> which the term appears in".
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/xapian/xapian/pull/6/files#r3324537>
> .
>