Class BasicModelIn
The basic tf-idf model of randomness.
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 BasicModelIn : BasicModel
Constructors
BasicModelIn()
Sole constructor: parameter-free
Declaration
public BasicModelIn()
Methods
Explain(BasicStats, float)
Returns an explanation for the score.
Most basic models use the number of documents and the total term frequency to compute Inf1. this method provides a generic explanation for such models. Subclasses that use other statistics must override this method.
Declaration
public override sealed Explanation Explain(BasicStats stats, float tfn)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats | |
float | tfn |
Returns
Type | Description |
---|---|
Explanation |
Overrides
Score(BasicStats, float)
Returns the informative content score.
Declaration
public override sealed float Score(BasicStats stats, float tfn)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats | |
float | tfn |
Returns
Type | Description |
---|---|
float |
Overrides
ToString()
Subclasses must override this method to return the code of the basic model formula. Refer to the original paper for the list.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |