Class Distribution
The probabilistic distribution used to model term occurrence in information-based models.
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 abstract class Distribution
Constructors
Distribution()
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Declaration
protected Distribution()
See Also
Methods
Explain(BasicStats, float, float)
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 | |
float | tfn | |
float | lambda |
Returns
Type | Description |
---|---|
Explanation |
See Also
Score(BasicStats, float, float)
Computes the score.
Declaration
public abstract float Score(BasicStats stats, float tfn, float lambda)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats | |
float | tfn | |
float | lambda |
Returns
Type | Description |
---|---|
float |
See Also
ToString()
Subclasses must override this method to return the name of the distribution.
Declaration
public override abstract string ToString()
Returns
Type | Description |
---|---|
string |