Interface SMAggregateWeighted

    • Field Detail

      • DEFAULT_WEIGHT

        static final double DEFAULT_WEIGHT
        The default similarity value is 1.0.
        See Also:
        Constant Field Values
    • Method Detail

      • setWeight

        void setWeight​(String attributeName,
                       double weight)
                throws NameNotFoundException
        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:
        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