Class KMeansDataGenerator
- java.lang.Object
-
- org.apache.flink.examples.java.clustering.util.KMeansDataGenerator
-
-
Constructor Summary
Constructors Constructor Description KMeansDataGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Main method to generate data for theKMeansexample program.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
Main method to generate data for theKMeansexample program.The generator creates to files:
< output-path >/pointsfor the data points< output-path >/centersfor the cluster centers
- Parameters:
args-- Int: Number of data points
- Int: Number of cluster centers
- Optional String: Output path, default value is {tmp.dir}
- Optional Double: Standard deviation of data points
- Optional Double: Value range of cluster centers
- Optional Long: Random seed
- Throws:
IOException
-
-