Implemented as
CopyC#
log(numDocs/(docFreq+1)) + 1
.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public override float Idf(
	int docFreq,
	int numDocs
)
Visual Basic
Public Overrides Function Idf ( _
	docFreq As Integer, _
	numDocs As Integer _
) As Single
Visual C++
public:
virtual float Idf(
	int docFreq, 
	int numDocs
) override

Parameters

docFreq
Type: System..::..Int32

[Missing <param name="docFreq"/> documentation for "M:Lucene.Net.Search.DefaultSimilarity.Idf(System.Int32,System.Int32)"]

numDocs
Type: System..::..Int32

[Missing <param name="numDocs"/> documentation for "M:Lucene.Net.Search.DefaultSimilarity.Idf(System.Int32,System.Int32)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.DefaultSimilarity.Idf(System.Int32,System.Int32)"]

See Also