public class NormalizationH1 extends Normalization
While this model is parameterless in the
information-based models (see
IBSimilarity) introduced a
The default value for the
c parameter is
|Constructor and Description|
Creates NormalizationH1 with the supplied parameter
|Modifier and Type||Method and Description|
Returns an explanation for the normalized term frequency.
Returns the normalized term frequency.
Subclasses must override this method to return the code of the normalization formula.
public NormalizationH1(float c)
c- hyper-parameter that controls the term frequency normalization with respect to the document length.
public final double tfn(BasicStats stats, double tf, double len)
len- the field length.
public Explanation explain(BasicStats stats, double tf, double len)
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.
public String toString()
public float getC()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.