Class IOUtils
java.lang.Object
net.bmahe.genetics4j.samples.clustering.IOUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[][]
loadClusters
(String filename) static double[][]
loadDataPoints
(String filename) static void
persistClusters
(double[][] clusters, String clustersFilename) static void
persistDataPoints
(double[][] data, int[] closestClusterIndex, String filename) static void
persistDataPoints
(double[][] data, String filename)
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
IOUtils
public IOUtils()
-
-
Method Details
-
loadClusters
-
loadDataPoints
- Throws:
IOException
-
persistClusters
- Throws:
IOException
-
persistDataPoints
- Throws:
IOException
-
persistDataPoints
public static void persistDataPoints(double[][] data, int[] closestClusterIndex, String filename) throws IOException - Throws:
IOException
-