Class ClusterAlgorithmComparison


  • public class ClusterAlgorithmComparison
    extends Object
    Plots clustering results for various algorithms and datasets. Based on scikit learn.
    • Constructor Detail

      • ClusterAlgorithmComparison

        public ClusterAlgorithmComparison()
    • Method Detail

      • makeCircles

        public static List<Vector2D> makeCircles​(int samples,
                                                 boolean shuffle,
                                                 double noise,
                                                 double factor,
                                                 RandomGenerator random)
      • makeBlobs

        public static List<Vector2D> makeBlobs​(int samples,
                                               int centers,
                                               double clusterStd,
                                               double min,
                                               double max,
                                               boolean shuffle,
                                               RandomGenerator random)
      • makeRandom

        public static List<Vector2D> makeRandom​(int samples)
      • generateNoiseVector

        public static Vector2D generateNoiseVector​(RandomGenerator randomGenerator,
                                                   double noise)
      • normalize

        public static List<DoublePoint> normalize​(List<Vector2D> input,
                                                  double minX,
                                                  double maxX,
                                                  double minY,
                                                  double maxY)
      • main

        public static void main​(String[] args)