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
public interface SMAggregateWeighted extends SMAggregate
Abstract interface for aggregate similarity measures with weighted attributes.- Author:
- Rainer Maximini
- See Also:
SMAggregateAverage
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_WEIGHTThe 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
COMPONENT, COMPONENT_KEY, DEFAULT_IGNORE_NULL_ATTRIBUTES_IN_QUERY, LOG_ATTRIBUTE_NAME_NOT_FOUND, LOG_ATTRIBUTE_NOT_FOUND, PROPERTY_USER_WEIGHT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetDefaultWeight()doublegetWeight(String attributeName)voidsetDefaultWeight(double weight)voidsetWeight(String attributeName, double weight)-
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
isIgnoreNullAttributesInQuery, setIgnoreNullAttributesInQuery
-
-
-
-
Field Detail
-
DEFAULT_WEIGHT
static final double DEFAULT_WEIGHT
The default similarity value is 1.0.- See Also:
- Constant Field Values
-
-
Method Detail
-
getWeight
double getWeight(String attributeName) throws NameNotFoundException
- Returns:
- double the weight of the given attribute. If the weight is not set, the default weight 1.0 will be returned.
- Throws:
NameNotFoundException
-
setWeight
void setWeight(String attributeName, double weight) throws NameNotFoundException
- 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:
NameNotFoundException- 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
-
-