Interface SMTaxonomyNodeHeight
-
- All Superinterfaces:
SimilarityMeasure
,SMTaxonomy
- All Known Implementing Classes:
SMTaxonomyNodeHeightImpl
public interface SMTaxonomyNodeHeight extends SMTaxonomy
This measure computes the similarity between two nodes based on the height of the nodes. To calculate the similarity between two nodes the common parent of the nodes is searched and the heights of the nodes, which start with 1 for the root and increases the height for each level, are sourced. Similar to the measure for the Classic User Weighted taxonomy, there are three different strategies for the calculation of the similarity:Strategy Similarity sim(q,c)= Optimistic height(commonFather(q,c)) / minimum(height(q), height(c) Pessimistic height(commonFather(q,c)) / maximum(height(q), height(c) Average height(commonFather(q,c)) / ((height(q) + height(c))/2) - Author:
- Rainer Maximini
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
Name of similarity measure is "TaxonomyNodeHeight".static Strategy
STRATEGY_DEFAULT
The default strategy is .-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Strategy
getStrategy()
void
setStrategy(Strategy strategy)
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.taxonomy.SMTaxonomy
getInstanceTaxonomyOrderPredicate
-
-
-
-
Field Detail
-
NAME
static final String NAME
Name of similarity measure is "TaxonomyNodeHeight".- See Also:
- Constant Field Values
-
STRATEGY_DEFAULT
static final Strategy STRATEGY_DEFAULT
The default strategy is .
-
-