public class BasicModelIn extends BasicModel
| Constructor and Description |
|---|
BasicModelIn()
Sole constructor: parameter-free
|
| Modifier and Type | Method and Description |
|---|---|
Explanation |
explain(BasicStats stats,
float tfn)
Returns an explanation for the score.
|
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.
|
public final float score(BasicStats stats, float tfn)
BasicModelscore in class BasicModelpublic final Explanation explain(BasicStats stats, float tfn)
BasicModelMost basic models use the number of documents and the total term frequency to compute Inf1. This method provides a generic explanation for such models. Subclasses that use other statistics must override this method.
explain in class BasicModelpublic String toString()
BasicModeltoString in class BasicModelCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.