Class LMSimilarity.LMStats

  • Enclosing class:
    LMSimilarity

    public static class LMSimilarity.LMStats
    extends BasicStats
    Stores the collection distribution of the current term.
    • Constructor Detail

      • LMStats

        public LMStats​(String field,
                       float queryBoost)
        Creates LMStats for the provided field and query-time boost
    • Method Detail

      • getCollectionProbability

        public final float getCollectionProbability()
        Returns the probability that the current term is generated by the collection.
      • setCollectionProbability

        public final void setCollectionProbability​(float collectionProbability)
        Sets the probability that the current term is generated by the collection.