Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BasicModelP

    Implements the Poisson approximation for the binomial model for DFR.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    WARNING: for terms that do not meet the expected random distribution (e.g. stopwords), this model may give poor performance, such as abnormally high scores for low tf values.
    Inheritance
    object
    BasicModel
    BasicModelP
    Inherited Members
    BasicModel.Explain(BasicStats, float)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Search.Similarities
    Assembly: Lucene.Net.dll
    Syntax
    public class BasicModelP : BasicModel

    Constructors

    BasicModelP()

    Sole constructor: parameter-free

    Declaration
    public BasicModelP()

    Fields

    LOG2_E

    log2(Math.E), precomputed.

    Declaration
    protected static double LOG2_E
    Field Value
    Type Description
    double

    Methods

    Score(BasicStats, float)

    Returns the informative content score.

    Declaration
    public override sealed float Score(BasicStats stats, float tfn)
    Parameters
    Type Name Description
    BasicStats stats
    float tfn
    Returns
    Type Description
    float
    Overrides
    BasicModel.Score(BasicStats, float)

    ToString()

    Subclasses must override this method to return the code of the basic model formula. Refer to the original paper for the list.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    BasicModel.ToString()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.