Class DistributionSPL
The smoothed power-law (SPL) distribution for the information-based framework that is described in the original paper.
Unlike for DFR, the natural logarithm is used, as it is faster to compute and the original paper does not express any preference to a specific base.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Search.Similarities
Assembly: Lucene.Net.dll
Syntax
public class DistributionSPL : Distribution
Constructors
DistributionSPL()
Sole constructor: parameter-free
Declaration
public DistributionSPL()
Methods
Score(BasicStats, float, float)
Computes the score.
Declaration
public override sealed float Score(BasicStats stats, float tfn, float lambda)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats | |
float | tfn | |
float | lambda |
Returns
Type | Description |
---|---|
float |
Overrides
ToString()
Subclasses must override this method to return the name of the distribution.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |