javax.datamining.clustering
Interface SimilarityMatrix

All Superinterfaces:
CategoryMatrix

public interface SimilarityMatrix
extends CategoryMatrix

A SimilarityMatrix specifies the similarity values between two values of an attribute. The value at entry (j, k) is the similarity value for attribute values j and k. A similarity matrix is symmetric, i.e., the value at (j, k) is the same as the value at (k, j).

If nothing is set, getValue returns 1 in the diagonal and 0 in the off-diagonal.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
CategoryMatrix

Method Summary
 void setSimilarityValue(java.lang.Object category1, java.lang.Object category2, double similarityValue)
          Adds a similarity value between the two values.
 
Methods inherited from interface javax.datamining.data.CategoryMatrix
getCategories, getCategorySet, getValue
 

Method Detail

setSimilarityValue

public void setSimilarityValue(java.lang.Object category1,
                               java.lang.Object category2,
                               double similarityValue)
Adds a similarity value between the two values. This effectively adds the specified similarity value into the entry (category1, category2) as well as (category2, category1), automatically making the matrix symmetric.

Parameters:
category1 -
category2 -
similarityValue - The similarity value of the specified two values.
Returns:
void