Class KMeansDataGenerator


  • public class KMeansDataGenerator
    extends Object
    Generates data for the KMeans example program.
    • Constructor Detail

      • KMeansDataGenerator

        public KMeansDataGenerator()
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws IOException
        Main method to generate data for the KMeans example program.

        The generator creates to files:

        • < output-path >/points for the data points
        • < output-path >/centers for the cluster centers
        Parameters:
        args -
        1. Int: Number of data points
        2. Int: Number of cluster centers
        3. Optional String: Output path, default value is {tmp.dir}
        4. Optional Double: Standard deviation of data points
        5. Optional Double: Value range of cluster centers
        6. Optional Long: Random seed
        Throws:
        IOException