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:
  • Field Details

    • DEFAULT_WEIGHT

      static final double DEFAULT_WEIGHT
      The default similarity value is 1.0.
      See Also:
  • Method Details

    • getWeight

      double getWeight(String attributeName) throws ProCAKENameNotFoundException
      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

      void setWeight(String attributeName, double weight) throws ProCAKENameNotFoundException
      Parameters:
      attributeName - is the name of the attribute whos weight should be set
      weight - 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

      Map<String,Double> getAttributeWeights()
      Returns:
      attribute weight map