Interface SMTaxonomyClassic
- All Superinterfaces:
SimilarityMeasure
,SMTaxonomy
- All Known Subinterfaces:
SMTaxonomyClassicUserWeights
- All Known Implementing Classes:
SMTaxonomyClassicImpl
,SMTaxonomyClassicUserWeightsImpl
The classic taxonomy measure is calculated by both pre-initialised node weights and several
strategies.
The node weights are pre-initialised and all nodes of one level have the same weight. The node weights can be calculated by the following function:
weight(node) = (height(node) / (maxlevels - 1)) - (1 / (maxlevels - 1))
Where 'maxlevels' denote the number of levels in the taxonomy and the function 'height' starts with 1 for the root and increases the height for each level, e.g., the childs of root have the height 2.
- Author:
- Rainer Maximini
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Name of similarity measure is "TaxonomyClassic".static final Strategy
The default strategy isStrategy.OPTIMISTIC
.Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setInnerNodeInCaseStrategy
(Strategy strategy) Define the strategy that should be used in case that the case is a child of the query.void
setInnerNodeInQueryStrategy
(Strategy strategy) Define the strategy that should be used in case that the query is a child of the case.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 Details
-
NAME
Name of similarity measure is "TaxonomyClassic".- See Also:
-
STRATEGY_DEFAULT
The default strategy isStrategy.OPTIMISTIC
.
-
-
Method Details
-
getInnerNodeInCaseStrategy
Strategy getInnerNodeInCaseStrategy() -
setInnerNodeInCaseStrategy
Define the strategy that should be used in case that the case is a child of the query.- Parameters:
strategy
- The strategy that should be used.
-
getInnerNodeInQueryStrategy
Strategy getInnerNodeInQueryStrategy() -
setInnerNodeInQueryStrategy
Define the strategy that should be used in case that the query is a child of the case.- Parameters:
strategy
- The strategy that should be used.
-