public static class LMSimilarity.LMStats extends BasicStats
Modifier and Type | Field and Description |
---|---|
private double |
collectionProbability
The probability that the current term is generated by the collection.
|
avgFieldLength, boost, docFreq, field, numberOfDocuments, numberOfFieldTokens, totalTermFreq
Constructor and Description |
---|
LMStats(java.lang.String field,
double boost)
Creates LMStats for the provided field and query-time boost
|
Modifier and Type | Method and Description |
---|---|
double |
getCollectionProbability()
Returns the probability that the current term is generated by the
collection.
|
void |
setCollectionProbability(double collectionProbability)
Sets the probability that the current term is generated by the
collection.
|
getAvgFieldLength, getBoost, getDocFreq, getNumberOfDocuments, getNumberOfFieldTokens, getTotalTermFreq, setAvgFieldLength, setDocFreq, setNumberOfDocuments, setNumberOfFieldTokens, setTotalTermFreq
private double collectionProbability
public LMStats(java.lang.String field, double boost)
public final double getCollectionProbability()
public final void setCollectionProbability(double collectionProbability)