Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class LambdaDF

    Computes lambda as docFreq+1 / numberOfDocuments+1.

    Note

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

    Inheritance
    object
    Lambda
    LambdaDF
    Inherited Members
    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 LambdaDF : Lambda

    Constructors

    LambdaDF()

    Sole constructor: parameter-free

    Declaration
    public LambdaDF()

    Methods

    CalculateLambda(BasicStats)

    Computes the lambda parameter.

    Declaration
    public override sealed float CalculateLambda(BasicStats stats)
    Parameters
    Type Name Description
    BasicStats stats
    Returns
    Type Description
    float
    Overrides
    Lambda.CalculateLambda(BasicStats)

    Explain(BasicStats)

    Explains the lambda parameter.

    Declaration
    public override sealed Explanation Explain(BasicStats stats)
    Parameters
    Type Name Description
    BasicStats stats
    Returns
    Type Description
    Explanation
    Overrides
    Lambda.Explain(BasicStats)

    ToString()

    Subclasses must override this method to return the code of the lambda formula. Since the original paper is not very clear on this matter, and also uses the DFR naming scheme incorrectly, the codes here were chosen arbitrarily.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    Lambda.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.