Utility class for computing the similarity values based on previouly loaded similarity data. It only has a method for computing and creating a new SimilarityData.

Constructors

Methods

  • Computes the local similarity value for a given attribute within a similarity value object, based on the provided similarity configuration.

    This method handles both primitive (number) attributes and nested similarity structures.

    Parameters

    • simValue: SimilarityValue

      The similarity value object containing attribute values (possibly nested).

    • simDescription: SimilarityConfiguration

      The similarity configuration describing weights and nested configurations.

    • attName: string

      The name of the attribute for which to compute the similarity value.

    Returns number

    The computed local similarity value as a number.

  • Computes new similarity data based on the values of similarity data previously loaded. The new similarity description is created based on a previous one, modifying the weights, so this function recalculate the global similarity values based on the old similarity values and the new local similarity weights.

    Parameters

    Returns default

    A SimilarityData object