Class Distribution
- java.lang.Object
-
- org.apache.lucene.search.similarities.Distribution
-
- Direct Known Subclasses:
DistributionLL,DistributionSPL
public abstract class Distribution extends Object
The probabilistic distribution used to model term occurrence in information-based models.- See Also:
IBSimilarity
-
-
Constructor Summary
Constructors Constructor Description Distribution()Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Explanationexplain(BasicStats stats, float tfn, float lambda)Explains the score.abstract floatscore(BasicStats stats, float tfn, float lambda)Computes the score.abstract StringtoString()Subclasses must override this method to return the name of the distribution.
-
-
-
Method Detail
-
score
public abstract float score(BasicStats stats, float tfn, float lambda)
Computes the score.
-
explain
public Explanation explain(BasicStats stats, float tfn, float lambda)
Explains the score. Returns the name of the model only, since bothtfnandlambdaare explained elsewhere.
-
-