de.hpi.fgis.dude.similarityfunction.contentbased.calculationstrategy
Interface CalculationStrategy<T1 extends JsonValue,T2 extends JsonValue>

Type Parameters:
T1 - The type of the first value.
T2 - The type of the second value.
All Known Implementing Classes:
ArrayConversionStrategy, AverageArrayArrayStrategy, BestMatchCalculationStrategy, CrossProductStrategy, IgnoreStrategy, NotSupportedStrategy, StableMarriageStrategy

public interface CalculationStrategy<T1 extends JsonValue,T2 extends JsonValue>

CalculationStrategy is an interface for different strategies, that can be used within ContentBasedSimilarityFunctions for defining the behavior of the similarity calculation, if at least one value is not an atomic one.

Author:
Matthias Pohl

Method Summary
 double calculateSimilarity(ContentBasedSimilarityFunction<?> similarityFunction, T1 value1, T2 value2)
          Calculates the similarity of the passed values.
 

Method Detail

calculateSimilarity

double calculateSimilarity(ContentBasedSimilarityFunction<?> similarityFunction,
                           T1 value1,
                           T2 value2)
Calculates the similarity of the passed values.

Parameters:
similarityFunction - The SimilarityFunction that is used for atomic values within this strategy.
value1 - The first value.
value2 - The second value.
Returns:
Returns the similarity of the passed values.


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.