|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.obsearch.query.AbstractOBQuery<O>
O
- public abstract class AbstractOBQuery<O>
Encapsulates functionality common to all queries.
Constructor Summary | |
---|---|
AbstractOBQuery()
|
Method Summary | |
---|---|
abstract boolean |
add(long id,
O object)
Adds an object into the queue. |
abstract double |
ep(List<AbstractOBResult<O>> db)
calculates the ep value of this query against the "DB" (all the objects of the DB sorted by distance to this query). |
abstract List<AbstractOBResult<O>> |
getSortedElements()
|
abstract boolean |
isFull()
|
abstract double |
recall(List<AbstractOBResult<O>> db)
calculates the recall value of this query against the "DB" (all the objects of the DB sorted by distance to this query). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractOBQuery()
Method Detail |
---|
public abstract boolean add(long id, O object) throws InstantiationException, IllegalAccessException, OBException
id
- id number of the object to add.object
- object added.
InstantiationException
IllegalAccessException
OBException
public abstract List<AbstractOBResult<O>> getSortedElements()
public abstract double ep(List<AbstractOBResult<O>> db)
db
- all the objects of the DB sorted by distance to this query
public abstract double recall(List<AbstractOBResult<O>> db)
db
- all the objects of the DB sorted by distance to this query
public abstract boolean isFull()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |