public static class LMSimilarity.LMStats extends BasicStats
avgFieldLength, boost, docFreq, numberOfDocuments, numberOfFieldTokens, totalTermFreq
Constructor and Description |
---|
LMStats(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
public LMStats(String field, double boost)
public final double getCollectionProbability()
public final void setCollectionProbability(double collectionProbability)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.