Class SMCollectionIsolatedMappingImpl

All Implemented Interfaces:
SMCollection, SMCollectionIsolatedMapping, SimilarityMeasure

public class SMCollectionIsolatedMappingImpl extends SMCollectionImpl implements SMCollectionIsolatedMapping
  • Constructor Details

    • SMCollectionIsolatedMappingImpl

      public SMCollectionIsolatedMappingImpl()
  • Method Details

    • compute

      public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator)
      Specified by:
      compute in interface SimilarityMeasure
      Returns:
    • computeLocalSimilarity

      protected Similarity computeLocalSimilarity(DataObject queryElement, CollectionObject caseCollection, SimilarityValuator valuator)
      This method compares one element from the query with all elements from the case. The respective similarities of the query object to the respective case objects are calculated and the best mapping value is finally output. Since the isolated mapping measure can also be mapped several times to an element from the case, previous mappings do not have to be taken into account.
      Parameters:
      queryElement - A single data object from the query collection for which the best mapping is searched.
      caseCollection - The collection case from which the element with the best possible mapping is searched.
      valuator - The similarity valuator to be used.
      Returns:
      The highest possible calculated similarity.
    • getSystemName

      public String getSystemName()
      Description copied from interface: SimilarityMeasure
      The system name can be used to distinguish the similarity measures. Each similarity measure that can be instantiated contains a static final field called NAME representing the system name, e.g., SMAggregateEuclidian.NAME

      The system name must also be given during initialization, see SimilarityModel.createSimilarityMeasure(String, DataClass).

      Specified by:
      getSystemName in interface SimilarityMeasure
      Returns:
      The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.