org.encog.ml.data.versatile.sources
public class CSVDataSource extends Object implements VersatileDataSource
| Constructor and Description |
|---|
CSVDataSource(File file,
boolean headers,
char delim)
Construct a CSV source from a filename.
|
CSVDataSource(File file,
boolean headers,
CSVFormat format)
Construct a CSV source from a filename.
|
| Modifier and Type | Method and Description |
|---|---|
int |
columnIndex(String name)
Obtain the column index for the specified name.
|
String[] |
readLine()
Read a line from the source.
|
void |
rewind()
Rewind the source back to the beginning.
|
public CSVDataSource(File file, boolean headers, char delim)
filename - The filename.headers - The headers.delim - The delimiter.public String[] readLine()
readLine in interface VersatileDataSourcepublic void rewind()
rewind in interface VersatileDataSourcepublic int columnIndex(String name)
columnIndex in interface VersatileDataSourcename - The column name.Copyright © 2014. All Rights Reserved.