Class Normalization.NoNormalization
Implementation used when there is no normalization.
Inherited Members
Namespace: Lucene.Net.Search.Similarities
Assembly: Lucene.Net.dll
Syntax
public sealed class Normalization.NoNormalization : Normalization
Constructors
NoNormalization()
Sole constructor: parameter-free
Declaration
public NoNormalization()
Methods
Explain(BasicStats, float, float)
Returns an explanation for the normalized term frequency.
The default normalization methods use the field length of the document and the average field length to compute the normalized term frequency. This method provides a generic explanation for such methods. Subclasses that use other statistics must override this method.
Declaration
public override Explanation Explain(BasicStats stats, float tf, float len)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats | |
float | tf | |
float | len |
Returns
Type | Description |
---|---|
Explanation |
Overrides
Tfn(BasicStats, float, float)
Returns the normalized term frequency.
Declaration
public override float Tfn(BasicStats stats, float tf, float len)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats | |
float | tf | |
float | len | the field length. |
Returns
Type | Description |
---|---|
float |
Overrides
ToString()
Subclasses must override this method to return the code of the normalization formula. Refer to the original paper for the list.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |