Méthode | Description | |
---|---|---|
BaselineTf ( float freq ) : float |
Implemented as: This degrates to
|
|
ComputeLengthNorm ( int numTerms ) : float |
Implemented as: This degrades to :TODO: potential optimization is to just flat out return 1.0f if numTerms is between min and max.
|
|
HyperbolicTf ( float freq ) : float |
Uses a hyperbolic tangent function that allows for a hard max... This code is provided as a convenience for subclasses that want to use a hyperbolic tf function.
|
|
LengthNorm ( Lucene.Net.Index.FieldInvertState state ) : float |
Implemented as
|
|
SetBaselineTfFactors ( float @base, float min ) : void |
Sets the baseline and minimum function variables for baselineTf
|
|
SetHyperbolicTfFactors ( float min, float max, double @base, float xoffset ) : void |
Sets the function variables for the hyperbolicTf functions
|
|
SetLengthNormFactors ( int min, int max, float steepness, bool discountOverlaps ) : void |
Sets the default function variables used by lengthNorm when no field specific variables have been set.
|
|
SweetSpotSimilarity ( ) : Lucene.Net.Index | ||
Tf ( float freq ) : float |
Delegates to baselineTf
|
public ComputeLengthNorm ( int numTerms ) : float | ||
numTerms | int | |
Résultat | float |
public LengthNorm ( Lucene.Net.Index.FieldInvertState state ) : float | ||
state | Lucene.Net.Index.FieldInvertState | |
Résultat | float |
public SetBaselineTfFactors ( float @base, float min ) : void | ||
@base | float | |
min | float | |
Résultat | void |
public SetHyperbolicTfFactors ( float min, float max, double @base, float xoffset ) : void | ||
min | float | the minimum tf value to ever be returned (default: 0.0) |
max | float | the maximum tf value to ever be returned (default: 2.0) |
@base | double | |
xoffset | float | the midpoint of the hyperbolic function (default: 10.0) |
Résultat | void |
public SetLengthNormFactors ( int min, int max, float steepness, bool discountOverlaps ) : void | ||
min | int | |
max | int | |
steepness | float | |
discountOverlaps | bool | |
Résultat | void |
public SweetSpotSimilarity ( ) : Lucene.Net.Index | ||
Résultat | Lucene.Net.Index |