Class IOUtils
java.lang.Object
net.bmahe.genetics4j.samples.clustering.IOUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[][]loadClusters(String filename) static double[][]loadDataPoints(String filename) static voidpersistClusters(double[][] clusters, String clustersFilename) static voidpersistDataPoints(double[][] data, int[] closestClusterIndex, String filename) static voidpersistDataPoints(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
-