jhplot.math.pca
Class DataReader
- java.lang.Object
-
- jhplot.math.pca.DataReader
-
public class DataReader extends java.lang.Object
Reads data matrix from a CSV file
-
-
Constructor Summary
Constructors Constructor and Description DataReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Matrix
read(java.io.InputStream inStream, boolean ignoreLastColumn)
Read data matrix from a CSV file.
-
-
-
Method Detail
-
read
public static Matrix read(java.io.InputStream inStream, boolean ignoreLastColumn) throws java.io.IOException
Read data matrix from a CSV file. The first row (corresponding to the header) is ignored. Some lines may be commented out by a '#' character.- Parameters:
inStream
- CSV fileignoreLastColumn
- if True, the last column is ignored. This is helpful when the last column corresponds to a class of a vector.- Returns:
- data matrix
- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG