|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.similarities.BasicModel
org.apache.lucene.search.similarities.BasicModelIn
public class BasicModelIn
The basic tf-idf model of randomness.
Constructor Summary | |
---|---|
BasicModelIn()
Sole constructor: parameter-free |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicModelIn()
Method Detail |
---|
public final float score(BasicStats stats, float tfn)
BasicModel
score
in class BasicModel
public final Explanation explain(BasicStats stats, float tfn)
BasicModel
Most 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 BasicModel
public String toString()
BasicModel
toString
in class BasicModel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |