public class BasicModelP extends BasicModel
WARNING: for terms that do not meet the expected random distribution (e.g. stopwords), this model may give poor performance, such as abnormally high scores for low tf values.
Modifier and Type | Field and Description |
---|---|
protected static double |
LOG2_E
log2(Math.E) , precomputed. |
Constructor and Description |
---|
BasicModelP()
Sole constructor: parameter-free
|
Modifier and Type | Method and Description |
---|---|
float |
score(BasicStats stats,
float tfn)
Returns the informative content score.
|
String |
toString()
Subclasses must override this method to return the code of the
basic model formula.
|
explain
public final float score(BasicStats stats, float tfn)
BasicModel
score
in class BasicModel
public String toString()
BasicModel
toString
in class BasicModel
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.