Class NormalizationH2
Normalization model in which the term frequency is inversely related to the length.
While this model is parameterless in the
original article, the thesis
introduces the parameterized variant.
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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Search.Similarities
Assembly: Lucene.Net.dll
Syntax
public class NormalizationH2 : Normalization
Constructors
| Improve this Doc View SourceNormalizationH2()
Calls NormalizationH2(1)
Declaration
public NormalizationH2()
NormalizationH2(Single)
Creates NormalizationH2 with the supplied parameter c
.
Declaration
public NormalizationH2(float c)
Parameters
Type | Name | Description |
---|---|---|
System.Single | c | Hyper-parameter that controls the term frequency normalization with respect to the document length. |
Properties
| Improve this Doc View SourceC
Returns the c
parameter.
Declaration
public virtual float C { get; }
Property Value
Type | Description |
---|---|
System.Single |
See Also
Methods
| Improve this Doc View SourceTfn(BasicStats, Single, Single)
Declaration
public sealed override float Tfn(BasicStats stats, float tf, float len)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats | |
System.Single | tf | |
System.Single | len |
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |