Class SimCalculatorSingleStrategy
java.lang.Object
de.uni_trier.wi2.procake.adaptation.cache.impl.strategies.SimCalculatorSingleStrategy
- All Implemented Interfaces:
SimCalculatorStrategy
Computes similarities for the similarity cache by computing those similarities individually
without using retrievers.
- Author:
- Maximilian Hoffmann
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.adaptation.cache.impl.strategies.SimCalculatorStrategy
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
computeSimilarities
(DecimalFormat df, WriteableObjectPool queryPool, WriteableObjectPool casePool, AbstractSimilarityCacheMatrix similarityMatrix) Computes the similarities according to the strategy.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.adaptation.cache.impl.strategies.SimCalculatorStrategy
printProgressAndEstimation
-
Constructor Details
-
SimCalculatorSingleStrategy
public SimCalculatorSingleStrategy()
-
-
Method Details
-
computeSimilarities
public long computeSimilarities(DecimalFormat df, WriteableObjectPool queryPool, WriteableObjectPool casePool, AbstractSimilarityCacheMatrix similarityMatrix) Computes the similarities according to the strategy. Thereby, the implementation should use the given methods of this interface to enable printing of the progress and utilizing the cache functionality.- Specified by:
computeSimilarities
in interfaceSimCalculatorStrategy
- Parameters:
df
- the decimal format to usequeryPool
- Pool of queriescasePool
- Pool of casessimilarityMatrix
- the similarity matrix to fill- Returns:
- the overall time the procedure ran
-