|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.ft.Scoring
public final class Scoring
Simple default scoring model, assembling all scoring calculations.
| Constructor Summary | |
|---|---|
Scoring()
|
|
| Method Summary | |
|---|---|
double |
and(double o,
double n)
Combines two scoring values. |
double |
finish(double s)
Creates a final scoring value. |
double |
or(double o,
double n)
Combines two scoring values. |
double |
step(double s)
Returns a scoring after a location step traversal. |
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 |
| Constructor Detail |
|---|
public Scoring()
| Method Detail |
|---|
public double step(double s)
s - input value
public double word(int tl,
double l)
tl - token lengthl - complete length
public double and(double o,
double n)
o - old valuen - new value
public double or(double o,
double n)
o - old valuen - new value
public double finish(double s)
s - input value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||