public interface UpdatableClusterDissimilarity extends ClusterDissimilarity
ClusterDissimilarity
for
more efficient computation. This contract indicates that the dissimilarity
measure being used can be computed in an online fashion, and that the
dissimilarity matrix can be updated to reflect the dissimilarity for a
new merged cluster.Modifier and Type | Method and Description |
---|---|
UpdatableClusterDissimilarity |
clone() |
double |
dissimilarity(int i,
int ni,
int j,
int nj,
double[][] distanceMatrix)
Provides the notion of dissimilarity between two sets of points, that may
not have the same number of points.
|
double |
dissimilarity(int i,
int ni,
int j,
int nj,
int k,
int nk,
double[][] distanceMatrix)
Provides the notion of dissimilarity between two sets of points, that may
not have the same number of points.
|
dissimilarity, dissimilarity, distance
double dissimilarity(int i, int ni, int j, int nj, double[][] distanceMatrix)
i
- the index of cluster i's distance in the original data setni
- the number of items in the cluster represented by ij
- the index of cluster j's distance in the original data setnj
- the number of items in the cluster represented by jdistanceMatrix
- a distance matrix originally created by
AbstractClusterDissimilarity.createDistanceMatrix(jsat.DataSet,
jsat.clustering.dissimilarity.ClusterDissimilarity)
double dissimilarity(int i, int ni, int j, int nj, int k, int nk, double[][] distanceMatrix)
i
- the index of cluster i's distance in the original data setni
- the number of items in the cluster represented by ij
- the index of cluster j's distance in the original data setnj
- the number of items in the cluster represented by jk
- the index of cluster k's distance in the original data setnk
- the number of items in the cluster represented by k
a distance matrix originally created by
AbstractClusterDissimilarity.createDistanceMatrix(jsat.DataSet,
jsat.clustering.dissimilarity.ClusterDissimilarity)
UpdatableClusterDissimilarity clone()
clone
in interface ClusterDissimilarity
Copyright © 2017. All rights reserved.