Show / Hide Table of Contents

    Class Distribution

    The probabilistic distribution used to model term occurrence in information-based models.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    Distribution
    DistributionLL
    DistributionSPL
    Namespace: Lucene.Net.Search.Similarities
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Distribution : object

    Constructors

    | Improve this Doc View Source

    Distribution()

    Sole constructor. (For invocation by subclass constructors, typically implicit.)

    Declaration
    public Distribution()

    Methods

    | Improve this Doc View Source

    Explain(BasicStats, Single, Single)

    Explains the score. Returns the name of the model only, since both tfn and lambda are explained elsewhere.

    Declaration
    public virtual Explanation Explain(BasicStats stats, float tfn, float lambda)
    Parameters
    Type Name Description
    BasicStats stats
    System.Single tfn
    System.Single lambda
    Returns
    Type Description
    Explanation
    | Improve this Doc View Source

    Score(BasicStats, Single, Single)

    Computes the score.

    Declaration
    public abstract float Score(BasicStats stats, float tfn, float lambda)
    Parameters
    Type Name Description
    BasicStats stats
    System.Single tfn
    System.Single lambda
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    ToString()

    Subclasses must override this method to return the name of the distribution.

    Declaration
    public abstract override string ToString()
    Returns
    Type Description
    System.String

    See Also

    IBSimilarity
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)