QueryProcessor.SF
Class QuerySF

java.lang.Object
  extended by QueryProcessor.Query
      extended by QueryProcessor.SF.QuerySF
Direct Known Subclasses:
QuerySFIndex, QuerySFSequential

public abstract class QuerySF
extends Query

Abstract class representing a query with a scoring function.


Field Summary
protected  ScoringFunction sf
          The scoring function to be used with this query
 
Fields inherited from class QueryProcessor.Query
q
 
Constructor Summary
QuerySF(Image q, ScoringFunction sf)
          Basic costructor.
 
Method Summary
abstract  java.util.Vector<ScoredResultImage> kNN(int k)
          Computes the result of a k-NN query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sf

protected ScoringFunction sf
The scoring function to be used with this query

Constructor Detail

QuerySF

public QuerySF(Image q,
               ScoringFunction sf)
Basic costructor.

Parameters:
q - Query image.
sf - Scoring function to be used.
Method Detail

kNN

public abstract java.util.Vector<ScoredResultImage> kNN(int k)
Computes the result of a k-NN query

Parameters:
k - Number of requested results.
Returns:
Vector of query results.