de.hpi.fgis.dude.similarityfunction.contentbased.calculationstrategy
Class CrossProductStrategy
java.lang.Object
de.hpi.fgis.dude.similarityfunction.contentbased.calculationstrategy.CrossProductStrategy
- All Implemented Interfaces:
- CalculationStrategy<JsonArray,JsonArray>
public class CrossProductStrategy
- extends Object
- implements CalculationStrategy<JsonArray,JsonArray>
CrossProductStrategy
compares a each member of the first JsonArray
with all elements of the second JsonArray
.
Finally, the highest similarity of all combinations is returned.
- Author:
- Matthias Pohl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrossProductStrategy
public CrossProductStrategy()
calculateSimilarity
public double calculateSimilarity(ContentBasedSimilarityFunction<?> similarityFunction,
JsonArray arr1,
JsonArray arr2)
- Description copied from interface:
CalculationStrategy
- Calculates the similarity of the passed values.
- Specified by:
calculateSimilarity
in interface CalculationStrategy<JsonArray,JsonArray>
- Parameters:
similarityFunction
- The SimilarityFunction
that is used for atomic values within this strategy.arr1
- The first value.arr2
- The second value.
- Returns:
- Returns the similarity of the passed values.
Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.