|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.ft.Scoring
public final class Scoring
Default scoring model, assembling all score calculations.
Method Summary | |
---|---|
static double |
and(double o,
double n)
Combines two scoring values. |
static double |
let(double s,
int c)
Returns a score for the let clause. |
static double |
not(double d)
Inverses the scoring value for FTNot. |
static double |
or(double o,
double n)
Combines two scoring values. |
static double |
step(double sc)
Returns a score for a single step. |
static double |
textNode(int npv,
int is,
int tokl,
int tl)
Calculates the score for a text node. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double word(int tl, double l)
tl
- token lengthl
- complete length
public static double and(double o, double n)
o
- old valuen
- new value
public static double or(double o, double n)
o
- old valuen
- new value
public static double not(double d)
d
- scoring value
public static double let(double s, int c)
s
- summed up scoring valuesc
- number of values
public static double textNode(int npv, int is, int tokl, int tl)
npv
- number of pos valuesis
- total number of index entriestokl
- token lengthtl
- text length
public static double step(double sc)
sc
- current score value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |