Interface SMAggregateWeighted
- All Superinterfaces:
SimilarityMeasure
,SMAggregate
- All Known Subinterfaces:
SMAggregateAverage
,SMAggregateEuclidian
,SMAggregateKMaximum
,SMAggregateKMinimum
,SMAggregateMaximum
,SMAggregateMinimum
,SMAggregateMinkowski
- All Known Implementing Classes:
SMAggregateAverageImpl
,SMAggregateEuclidianImpl
,SMAggregateKMaximumImpl
,SMAggregateKMinimumImpl
,SMAggregateMaximumImpl
,SMAggregateMinimumImpl
,SMAggregateMinkowskiImpl
,SMAggregateWeightedImpl
Abstract interface for aggregate similarity measures with weighted attributes.
- Author:
- Rainer Maximini
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
The default similarity value is 1.0.Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.aggregate.SMAggregate
DEFAULT_IGNORE_NULL_ATTRIBUTES_IN_QUERY, LOG_ATTRIBUTE_NAME_NOT_FOUND, LOG_ATTRIBUTE_NOT_FOUND, PROPERTY_USER_WEIGHT
-
Method Summary
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.aggregate.SMAggregate
getSimilaritiesToUse, getSimilaritiesToUse, getSimilarityToUse, isIgnoreNullAttributesInQuery, setIgnoreNullAttributesInQuery, setSimilarityToUse
-
Field Details
-
DEFAULT_WEIGHT
static final double DEFAULT_WEIGHTThe default similarity value is 1.0.- See Also:
-
-
Method Details
-
getWeight
- Returns:
- double the weight of the given attribute. If the weight is not set, the default weight 1.0 will be returned.
- Throws:
ProCAKENameNotFoundException
-
setWeight
- Parameters:
attributeName
- is the name of the attribute whos weight should be setweight
- is the weight of the attribute. The values will normalized automatically.- Throws:
ProCAKENameNotFoundException
- if the attribute not exists
-
getDefaultWeight
double getDefaultWeight()- Returns:
- default weight
-
setDefaultWeight
void setDefaultWeight(double weight) - Parameters:
weight
- is the default weight for each attribute, which hasn't an own weight
-
getAttributeWeights
- Returns:
- attribute weight map
-