jsat.clustering.dissimilarity
Interface ClusterDissimilarity
-
- All Known Subinterfaces:
- UpdatableClusterDissimilarity
- All Known Implementing Classes:
- AbstractClusterDissimilarity, AverageLinkDissimilarity, CentroidDissimilarity, CompleteLinkDissimilarity, DistanceMetricDissimilarity, LanceWilliamsDissimilarity, MedianDissimilarity, SingleLinkDissimilarity, WardsDissimilarity
public interface ClusterDissimilarityThis interface provides the basic contract for measuring the dissimilarity between two clusters, and intended for use in Hierarchical Agglomerative Clustering.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ClusterDissimilarityclone()doubledissimilarity(java.util.List<DataPoint> a, java.util.List<DataPoint> b)Provides the notion of dissimilarity between two sets of points, that may not have the same number of points.doubledissimilarity(java.util.Set<java.lang.Integer> a, java.util.Set<java.lang.Integer> b, double[][] distanceMatrix)Provides the notion of dissimilarity between two sets of points, that may not have the same number of points.doubledistance(DataPoint a, DataPoint b)Provides the notion of distance, or dissimilarity, between two data points
-
-
-
Method Detail
-
distance
double distance(DataPoint a, DataPoint b)
Provides the notion of distance, or dissimilarity, between two data points- Parameters:
a- the first data pointb- the second data point- Returns:
- a value >= 0 that is a measure of the difference between the two points. The closer to zero, the more similar the points are.
-
dissimilarity
double dissimilarity(java.util.List<DataPoint> a, java.util.List<DataPoint> b)
Provides the notion of dissimilarity between two sets of points, that may not have the same number of points.- Parameters:
a- the first cluster of pointsb- the second cluster of points- Returns:
- a value >= 0 that describes the dissimilarity of the two clusters. The larger the value, the more different the two clusterings are.
-
dissimilarity
double dissimilarity(java.util.Set<java.lang.Integer> a, java.util.Set<java.lang.Integer> b, double[][] distanceMatrix)Provides the notion of dissimilarity between two sets of points, that may not have the same number of points. This is done using a matrix containing all pairwise distance computations between all points.- Parameters:
a- the first set of indices of the original data set that are in a cluster, which map to distanceMatrixb- the second set of indices of the original data set that are in a cluster, which map to distanceMatrixdistanceMatrix- the upper triangual distance matrix as created byAbstractClusterDissimilarity.createDistanceMatrix(jsat.DataSet, jsat.clustering.dissimilarity.ClusterDissimilarity)- Returns:
- a value >= 0 that describes the dissimilarity of the two clusters. The larger the value, the more different the two clusterings are.
-
clone
ClusterDissimilarity clone()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG