Show / Hide Table of Contents

    Class AfterEffect

    This class acts as the base class for the implementations of the first normalization of the informative content in the DFR framework. This component is also called the after effect and is defined by the formula Inf2 = 1 - Prob2, where Prob2 measures the information gain.

    @lucene.experimental

    Inheritance
    System.Object
    AfterEffect
    AfterEffect.NoAfterEffect
    AfterEffectB
    AfterEffectL
    Namespace: Lucene.Net.Search.Similarities
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class AfterEffect : object

    Constructors

    | Improve this Doc View Source

    AfterEffect()

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

    Declaration
    public AfterEffect()

    Methods

    | Improve this Doc View Source

    Explain(BasicStats, Single)

    Returns an explanation for the score.

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

    Score(BasicStats, Single)

    Returns the aftereffect score.

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

    ToString()

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

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

    See Also

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