org.encog.app.analyst.util
public class CSVHeaders extends Object
Constructor and Description |
---|
CSVHeaders(File filename,
boolean headers,
CSVFormat format)
Construct the object.
|
CSVHeaders(List<String> inputHeadings)
Construct the object.
|
CSVHeaders(String[] inputHeadings)
Construct the object.
|
Modifier and Type | Method and Description |
---|---|
int |
find(String name)
Find the specified column.
|
String |
getBaseHeader(int index)
Get the base header, strip any (...).
|
String |
getHeader(int index)
Get the specified header.
|
List<String> |
getHeaders() |
int |
getSlice(int currentIndex)
Get the timeslice for the specified index.
|
static int |
parseTimeSlice(String name)
Parse a timeslice from a header such as (t-1).
|
int |
size() |
static String |
tagColumn(String name,
int part,
int timeSlice,
boolean multiPart)
Tag a column with part # and timeslice.
|
public CSVHeaders(File filename, boolean headers, CSVFormat format)
filename
- The filename.headers
- False if headers are not extended.format
- The CSV format.public CSVHeaders(List<String> inputHeadings)
inputHeadings
- The input headings.public CSVHeaders(String[] inputHeadings)
inputHeadings
- The input headings.public static int parseTimeSlice(String name)
name
- The column name.public static String tagColumn(String name, int part, int timeSlice, boolean multiPart)
name
- The name of the column.part
- The part #.timeSlice
- The timeslice.multiPart
- True if this is a multipart column.public int find(String name)
name
- The column name.public String getBaseHeader(int index)
index
- The index of the header.public String getHeader(int index)
index
- The index of the header to get.public int getSlice(int currentIndex)
currentIndex
- The index to get the time slice for.public int size()
Copyright © 2014. All Rights Reserved.