Interface ICrosstableDistanceVisitor

All Known Implementing Classes:
CrossTableDistanceVisitor

public interface ICrosstableDistanceVisitor
This interface can be implemented to iterate over all the distances of a cross table. The match engine provides an implementation of this interface during the initialisation of cross table related match functions.
Since:
6.2
Author:
O. Kerpershoek, F. van der Meer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDistance(IPrimitiveValue fromId, IPrimitiveValue toId, int distance)
    This method can be invoked to define the distance between two domain values.
  • Method Details

    • addDistance

      void addDistance(IPrimitiveValue fromId, IPrimitiveValue toId, int distance)
      This method can be invoked to define the distance between two domain values. The distance between to values is not automatically reversible. If the distance from value A to B is equal to the distance from B to A, the setDistance method should be invoked twice.
      Note: The distance is a percentage and should be between 0 and 100. A value of zero means that the offered value is completely different from the requested value. A percentage of 100 means a complete match.
      Parameters:
      fromId - This is the id of the requested value.
      toId - This is the id of the offered value.
      distance - This is the similarity between the requested and the offered value.
      Throws:
      InitializationException - This exception is thrown when the distance could not be accepted.