|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.imemex.queryprocessor.scoring.rules.AbstractScoringRule<E>
public abstract class AbstractScoringRule<E extends IdentifiableResourceView>
Provides an abstract implementation of a scoring rule. The score variable, range is 0 to 1, indicates how good a rule matches a RV.
| Constructor Summary | |
|---|---|
AbstractScoringRule()
Default constructor. |
|
AbstractScoringRule(double w)
This constructor sets points to p. |
|
| Method Summary | |
|---|---|
double |
getWeight()
return maximum possible score |
void |
setWeight(double w)
set maximum possible score to a new value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.imemex.queryprocessor.scoring.ScoringRule |
|---|
computeScore, getRuleDesc |
| Constructor Detail |
|---|
public AbstractScoringRule()
public AbstractScoringRule(double w)
p - - new value for weight| Method Detail |
|---|
public double getWeight()
ScoringRule
getWeight in interface ScoringRule<E extends IdentifiableResourceView>public void setWeight(double w)
ScoringRule
setWeight in interface ScoringRule<E extends IdentifiableResourceView>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||