public final class Scoring extends Object
Modifier and Type | Method and Description |
---|---|
static double |
avg(double sum,
int count)
Returns an average scoring value.
|
static double |
not(double value)
Inverses the scoring value for FTNot.
|
static double |
textNode(int number,
int size,
int token,
int length)
Calculates the score for a text node.
|
static double |
word(int token,
double length)
Calculates a score value, based on the token length
and complete text length.
|
public static double word(int token, double length)
token
- token lengthlength
- complete lengthpublic static double not(double value)
value
- scoring valuepublic static double avg(double sum, int count)
sum
- summarized scoring valuecount
- number of valuespublic static double textNode(int number, int size, int token, int length)
number
- number of pos valuessize
- total number of index entriestoken
- token lengthlength
- text lengthCopyright © 2005–2015 BaseX Team. All rights reserved.