Computes a score factor based on a term or phrase's frequency in a
document. This value is multiplied by the {@link #Idf(Term, Searcher)}
factor for each term in the query and these products are then summed to
form the initial score for a document.
Terms and phrases repeated in a document indicate the topic of the
document, so implementations of this method usually return larger values
when is large, and smaller values when
is small.
Namespace: Lucene.Net.SearchCopyC#
freq
CopyC#
freq
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public abstract float Tf( float freq ) |
Visual Basic |
---|
Public MustOverride Function Tf ( _ freq As Single _ ) As Single |
Visual C++ |
---|
public: virtual float Tf( float freq ) abstract |
Parameters
- freq
- Type: System..::..Single
the frequency of a term within a document