|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.matching.models.basicmodel.BasicModel org.terrier.matching.models.basicmodel.In
public class In
This class implements the In basic model for randomness.
Field Summary | |
---|---|
protected java.lang.String |
modelName
The name of the model. |
protected double |
numberOfDocuments
The number of documents in the whole collection. |
Fields inherited from class org.terrier.matching.models.basicmodel.BasicModel |
---|
i, numberOfTokens |
Constructor Summary | |
---|---|
In()
A default constructor. |
Method Summary | |
---|---|
java.lang.String |
getInfo()
Returns the name of the model. |
double |
score(double tf,
double documentFrequency,
double termFrequency,
double keyFrequency,
double documentLength)
This method computes the score for the implemented weighting model. |
Methods inherited from class org.terrier.matching.models.basicmodel.BasicModel |
---|
setNumberOfDocuments, setNumberOfTokens, stirlingPower |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String modelName
protected double numberOfDocuments
Constructor Detail |
---|
public In()
Method Detail |
---|
public java.lang.String getInfo()
getInfo
in class BasicModel
public double score(double tf, double documentFrequency, double termFrequency, double keyFrequency, double documentLength)
score
in class BasicModel
tf
- The term frequency in the documentdocumentFrequency
- The document frequency of the termtermFrequency
- the term frequency in the collectiondocumentLength
- The length of the document.keyFrequency
- The normalised query term frequency.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |