Class NormalizationH1
Normalization model that assumes a uniform distribution of the term frequency.
While this model is parameterless in the
original article,
information-based models (see IBSimilarity) introduced a
multiplying factor.
The default value for the c parameter is 1.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Search.Similarities
Assembly: Lucene.Net.dll
Syntax
public class NormalizationH1 : Normalization
Constructors
NormalizationH1()
Calls NormalizationH1(1)
Declaration
public NormalizationH1()
NormalizationH1(float)
Creates NormalizationH1 with the supplied parameter c.
Declaration
public NormalizationH1(float c)
Parameters
| Type | Name | Description |
|---|---|---|
| float | c | Hyper-parameter that controls the term frequency normalization with respect to the document length. |
Properties
C
Returns the c parameter.
Declaration
public virtual float C { get; }
Property Value
| Type | Description |
|---|---|
| float |
See Also
Methods
Tfn(BasicStats, float, float)
Returns the normalized term frequency.
Declaration
public override sealed 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 |