DataReader
jhplot.math.pca

Class DataReader



  • public class DataReaderextends Object
    Reads data matrix from a CSV file
    • Constructor Detail

      • DataReader

        public DataReader()
    • Method Detail

      • read

        public static Matrix read(InputStream inStream,          boolean ignoreLastColumn)                   throws 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 file
        ignoreLastColumn - 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:
        IOException

SCaVis 2.2 © jWork.ORG