Class FitnessUtils

java.lang.Object
net.bmahe.genetics4j.samples.clustering.FitnessUtils

public class FitnessUtils extends Object
  • Constructor Details

    • FitnessUtils

      public FitnessUtils()
  • Method Details

    • a_i

      private static final double a_i(double[][] data, double[][] distances, Map<Integer,Set<Integer>> clusterToMembers, int clusterIndex, int i)
    • b_i

      private static final double b_i(double[][] data, double[][] distances, Map<Integer,Set<Integer>> clusterToMembers, int numClusters, int clusterIndex, int i)
    • assignDataToClusters

      public static final int[] assignDataToClusters(double[][] data, double[][] distances, double[][] clusters)
    • computeSilhouetteScore

      public static final double computeSilhouetteScore(double[][] data, double[][] distances, int numClusters, Map<Integer,Set<Integer>> clusterToMembers, int[] closestClusterIndex, int i)
    • computeSumSquaredErrors

      public static final double computeSumSquaredErrors(double[][] data, double[][] distances, double[][] clusters, Map<Integer,Set<Integer>> clusterToMembers, int[] closestClusterIndex)
    • computeFitness

      public static final Fitness<Double> computeFitness(int numDataPoints, double[][] data, double[][] distances, int numClusters)
    • computeFitnessWithSSE

      public static final Fitness<Double> computeFitnessWithSSE(int numDataPoints, double[][] data, double[][] distances, int numClusters)