public abstract class AbstractClusterDissimilarity extends Object implements ClusterDissimilarity
Constructor and Description |
---|
AbstractClusterDissimilarity() |
Modifier and Type | Method and Description |
---|---|
abstract ClusterDissimilarity |
clone() |
static double[][] |
createDistanceMatrix(DataSet dataSet,
ClusterDissimilarity cd)
Creates an upper triangular matrix containing the distance between all
points in the data set.
|
static double |
getDistance(double[][] distanceMatrix,
int i,
int j)
A convenience method.
|
static void |
setDistance(double[][] distanceMatrix,
int i,
int j,
double dist)
A convenience method.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dissimilarity, dissimilarity, distance
public static double getDistance(double[][] distanceMatrix, int i, int j)
createDistanceMatrix(jsat.DataSet, jsat.clustering.dissimilarity.ClusterDissimilarity)
, then this method will return the appropriate value for the desired
index.distanceMatrix
- the distance matrix to query fromi
- the first indexj
- the second indexpublic static void setDistance(double[][] distanceMatrix, int i, int j, double dist)
createDistanceMatrix(jsat.DataSet, jsat.clustering.dissimilarity.ClusterDissimilarity)
, then this method will set the appropriate value for the desired
index.distanceMatrix
- the distance matrix to query fromi
- the first indexj
- the second indexdist
- the new distance value to store in the matrixpublic static double[][] createDistanceMatrix(DataSet dataSet, ClusterDissimilarity cd)
dataSet
- the data set to create distance matrix forcd
- the cluster dissimilarity measure to usepublic abstract ClusterDissimilarity clone()
clone
in interface ClusterDissimilarity
clone
in class Object
Copyright © 2017. All rights reserved.