|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApproxIndexShort<O extends OBShort>
An approximate index has extra search methods useful to compare the approx index against other indexes. We add search bounded by ep and precision. As soon as the search reaches the given ep or precision the search stops and then statistics can be fetched.
Method Summary | |
---|---|
void |
searchOBAnalyzeEp(O object,
short r,
OBPriorityQueueShort<O> result,
double ep,
List<AbstractOBResult<O>> db)
Searches the Index and returns OBResult (ID, OB and distance) elements that are closer to "object". |
void |
searchOBAnalyzeRecall(O object,
short r,
OBPriorityQueueShort<O> result,
double recall,
List<AbstractOBResult<O>> perfectQueryResult)
Searches the Index and returns OBResult (ID, OB and distance) elements that are closer to "object". |
Method Detail |
---|
void searchOBAnalyzeEp(O object, short r, OBPriorityQueueShort<O> result, double ep, List<AbstractOBResult<O>> db) throws NotFrozenException, InstantiationException, IllegalIdException, IllegalAccessException, OutOfRangeException, OBException
object
- The object that has to be searchedr
- The range to be usedresult
- A priority queue that will hold the resultep
- We will search until the given ep is fulfilled.db
- The entire db objects sorted by distance to object
NotFrozenException
- if the index has not been frozen.
OBException
- User generated exception
IllegalAccessException
- If there is a problem when instantiating objects O
InstantiationException
- If there is a problem when instantiating objects O
IllegalIdException
- This exception is left as a Debug flag. If you receive
this exception please report the problem to:
http://code.google.com/p/obsearch/issues/list
OutOfRangeException
- If the distance of any object to any other object exceeds
the range defined by the user.void searchOBAnalyzeRecall(O object, short r, OBPriorityQueueShort<O> result, double recall, List<AbstractOBResult<O>> perfectQueryResult) throws NotFrozenException, InstantiationException, IllegalIdException, IllegalAccessException, OutOfRangeException, OBException
object
- The object that has to be searchedr
- The range to be usedresult
- A priority queue that will hold the resultrecall
- The expected recall of the query.perfectQueryResult
- the perfect query result to compare against the approx query.
NotFrozenException
- if the index has not been frozen.
OBException
- User generated exception
IllegalAccessException
- If there is a problem when instantiating objects O
InstantiationException
- If there is a problem when instantiating objects O
IllegalIdException
- This exception is left as a Debug flag. If you receive
this exception please report the problem to:
http://code.google.com/p/obsearch/issues/list
OutOfRangeException
- If the distance of any object to any other object exceeds
the range defined by the user.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |