public static class LMSimilarity.LMStats extends BasicStats
| Modifier and Type | Field and Description |
|---|---|
private float |
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)
Creates LMStats for the provided field and query-time boost
|
| Modifier and Type | Method and Description |
|---|---|
float |
getCollectionProbability()
Returns the probability that the current term is generated by the
collection.
|
void |
setCollectionProbability(float collectionProbability)
Sets the probability that the current term is generated by the
collection.
|
getAvgFieldLength, getBoost, getDocFreq, getNumberOfDocuments, getNumberOfFieldTokens, getTotalTermFreq, getValueForNormalization, normalize, rawNormalizationValue, setAvgFieldLength, setDocFreq, setNumberOfDocuments, setNumberOfFieldTokens, setTotalTermFreqprivate float collectionProbability
public LMStats(java.lang.String field)
public final float getCollectionProbability()
public final void setCollectionProbability(float collectionProbability)