Package edu.cmu.tetrad.util
Class DataUtility
java.lang.Object
edu.cmu.tetrad.util.DataUtility
Fast data loader for continuous or discrete data.
Jul 13, 2015 10:44:10 AM
- Version:
- $Id: $Id
- Author:
- Kevin V. Bui (kvb2@pitt.edu)
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
countColumn
(File file, char delimiter) countColumn.static int
countLine.
-
Method Details
-
countColumn
countColumn.
- Parameters:
file
- datasetdelimiter
- a single character used to separate the data- Returns:
- the number of column of the first line in the file.
- Throws:
IOException
- if any.
-
countLine
countLine.
- Parameters:
file
- dataset- Returns:
- the number of lines that contain data.
- Throws:
IOException
- if any.
-