java.lang.Object
net.bmahe.genetics4j.samples.clustering.IOUtils

public class IOUtils extends Object
  • Field Details

    • logger

      public static final org.apache.logging.log4j.Logger logger
  • Constructor Details

    • IOUtils

      public IOUtils()
  • Method Details

    • loadClusters

      public static double[][] loadClusters(String filename)
    • loadDataPoints

      public static double[][] loadDataPoints(String filename) throws IOException
      Throws:
      IOException
    • persistClusters

      public static void persistClusters(double[][] clusters, String clustersFilename) throws IOException
      Throws:
      IOException
    • persistDataPoints

      public static void persistDataPoints(double[][] data, String filename) throws IOException
      Throws:
      IOException
    • persistDataPoints

      public static void persistDataPoints(double[][] data, int[] closestClusterIndex, String filename) throws IOException
      Throws:
      IOException