C# Class Encog.App.Analyst.Util.CSVHeaders

Datei anzeigen Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
CSVHeaders ( FileInfo filename, bool headers, CSVFormat format ) : System

Construct the object.

CSVHeaders ( IEnumerable inputHeadings ) : System

Construct the object.

Find ( String name ) : int

Find the specified column.

GetBaseHeader ( int index ) : String

Get the base header, strip any (...).

GetHeader ( int index ) : String

Get the specified header.

GetSlice ( int currentIndex ) : int

Get the timeslice for the specified index.

ParseTimeSlice ( String name ) : int

Parse a timeslice from a header such as (t-1).

Size ( ) : int
TagColumn ( String name, int part, int timeSlice, bool multiPart ) : String

Tag a column with part # and timeslice.

Private Methods

Method Description
Init ( ) : void

Setup the column mapping and validate.

ValidateSameName ( ) : void

Validate that two columns do not have the same name. This is an error.

Method Details

CSVHeaders() public method

Construct the object.
public CSVHeaders ( FileInfo filename, bool headers, CSVFormat format ) : System
filename System.IO.FileInfo The filename.
headers bool False if headers are not extended.
format Encog.Util.CSV.CSVFormat The CSV format.
return System

CSVHeaders() public method

Construct the object.
public CSVHeaders ( IEnumerable inputHeadings ) : System
inputHeadings IEnumerable The input headings.
return System

Find() public method

Find the specified column.
public Find ( String name ) : int
name String The column name.
return int

GetBaseHeader() public method

Get the base header, strip any (...).
public GetBaseHeader ( int index ) : String
index int The index of the header.
return String

GetHeader() public method

Get the specified header.
public GetHeader ( int index ) : String
index int The index of the header to get.
return String

GetSlice() public method

Get the timeslice for the specified index.
public GetSlice ( int currentIndex ) : int
currentIndex int The index to get the time slice for.
return int

ParseTimeSlice() public static method

Parse a timeslice from a header such as (t-1).
public static ParseTimeSlice ( String name ) : int
name String The column name.
return int

Size() public method

public Size ( ) : int
return int

TagColumn() public static method

Tag a column with part # and timeslice.
public static TagColumn ( String name, int part, int timeSlice, bool multiPart ) : String
name String The name of the column.
part int The part #.
timeSlice int The timeslice.
multiPart bool True if this is a multipart column.
return String