public class Get extends Object
| Constructor and Description |
|---|
Get() |
| Modifier and Type | Method and Description |
|---|---|
static double |
calcDistance(double[] a1,
double[] a2)
This method calculates the Euclidean distance between two N-ncolsional
vectors.
|
static double |
calcSquaredDistance(double[] a1,
double[] a2)
This method calculates the squared distance between two N-dimesional
vectors.
|
static double |
compactness(double[][] indat,
int[] assignment,
int numClusters,
double[][] clusterCenters)
This method returns the cluster compactness
|
public static double compactness(double[][] indat,
int[] assignment,
int numClusters,
double[][] clusterCenters)
indat[][] - data matrixnumClusters - number of clustersclusterCenters[][] - cluster centerspublic static double calcSquaredDistance(double[] a1,
double[] a2)
a1 - the first data vector.a2 - the second data vector.public static double calcDistance(double[] a1,
double[] a2)
a1 - the first data vector.a2 - the second data vector.DMelt 2.0 © DataMelt by jWork.ORG