Class FitnessUtils
java.lang.Object
net.bmahe.genetics4j.samples.clustering.FitnessUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static final double
a_i
(double[][] data, double[][] distances, Map<Integer, Set<Integer>> clusterToMembers, int clusterIndex, int i) static final int[]
assignDataToClusters
(double[][] data, double[][] distances, double[][] clusters) private static final double
b_i
(double[][] data, double[][] distances, Map<Integer, Set<Integer>> clusterToMembers, int numClusters, int clusterIndex, int i) computeFitness
(int numDataPoints, double[][] data, double[][] distances, int numClusters) computeFitnessWithSSE
(int numDataPoints, double[][] data, double[][] distances, int numClusters) static final double
computeSilhouetteScore
(double[][] data, double[][] distances, int numClusters, Map<Integer, Set<Integer>> clusterToMembers, int[] closestClusterIndex, int i) static final double
computeSumSquaredErrors
(double[][] data, double[][] distances, double[][] clusters, Map<Integer, Set<Integer>> clusterToMembers, int[] closestClusterIndex)
-
Constructor Details
-
FitnessUtils
public FitnessUtils()
-
-
Method Details
-
a_i
-
b_i
-
assignDataToClusters
public static final int[] assignDataToClusters(double[][] data, double[][] distances, double[][] clusters) -
computeSilhouetteScore
-
computeSumSquaredErrors
-
computeFitness
-
computeFitnessWithSSE
-