Creates a new SimilarityData instance.
The similarity configuration that defines how similarity is calculated
Data about similarity values
OptionalcaseIds: string[](Optional) array of case ids
A detailed description about the similarity function employed to computed the similarity data
OptionalsimilarityA matrix of global similarity values. This attribute is optional because it is commonly created during the construction
A list of pairs of cases with detailed similarity values (global and local similarity values)
Return the similarity value of a pair of cases (id1, id2). The similarity values is returned as an object with detailed information about global and local similarity between cases
The unique identifier of a case
The unique identifier of a case
A similarity value object; or null if any case does not exist.
This class encapsulates all the information about the similarity values computed using a similarity function for all the cases in a casebase It contains information that describes the similarity function employed to copmpute the similarity data. The similarity values are stored in two different ways: