Class 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:
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • Distribution

        public Distribution()
        Sole constructor. (For invocation by subclass constructors, typically implicit.)
    • 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 both tfn and lambda are explained elsewhere.
      • toString

        public abstract String toString()
        Subclasses must override this method to return the name of the distribution.
        toString in class Object