Class DataUtility

java.lang.Object
edu.cmu.tetrad.util.DataUtility

public class DataUtility extends Object
Fast data loader for continuous or discrete data.

Jul 13, 2015 10:44:10 AM

Author:
Kevin V. Bui (kvb2@pitt.edu)
  • Method Details

    • countColumn

      public static int countColumn(File file, char delimiter) throws IOException
      Parameters:
      file - dataset
      delimiter - a single character used to separate the data
      Returns:
      the number of column of the first line in the file.
      Throws:
      IOException
    • countLine

      public static int countLine(File file) throws IOException
      Parameters:
      file - dataset
      Returns:
      the number of lines that contain data.
      Throws:
      IOException