|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjminhep.cluster.Get
public class Get
Some useful methods related to the clustering procedure
Constructor Summary | |
---|---|
Get()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Get()
Method Detail |
---|
public static double compactness(double[][] indat, int[] assignment, int numClusters, double[][] clusterCenters)
indat[][]
- data matrixnumClusters
- number of clustersclusterCenters[][]
- cluster centers
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |