|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.xquery.util.Scoring
public final class Scoring
Scoring class, assembling all scoring calculations. Current scoring model is very simple.
| Field Summary | |
|---|---|
static double |
DEFAULT
Default scoring value. |
static double |
LOG
Logarithmic base for calculating the score value. |
| Method Summary | |
|---|---|
static double |
and(double s1,
double s2)
Combines two scoring values. |
static double |
finish(double s)
Creates a final scoring value. |
static double |
or(double s1,
double s2)
Combines two scoring values. |
static double |
step(double s)
Returns a scoring after a location step traversal. |
static double |
word(int tl,
double l)
Calculates a score value, based on the token length and complete text length. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT
public static final double LOG
| Method Detail |
|---|
public static double step(double s)
s - input value
public static double word(int tl,
double l)
tl - token lengthl - complete length
public static double and(double s1,
double s2)
s1 - first values2 - second value
public static double or(double s1,
double s2)
s1 - first values2 - second value
public static double finish(double s)
s - input value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||