C# Class Encog.App.Analyst.CSV.Normalize.AnalystNormalizeCSV

Inheritance: Encog.App.Analyst.CSV.Basic.BasicFile
ファイルを表示 Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Analyze ( FileInfo inputFilename, bool expectInputHeaders, CSVFormat inputFormat, EncogAnalyst theAnalyst ) : void

Analyze the file.

ExtractFields ( EncogAnalyst analyst, CSVHeaders headers, ReadCSV csv, int outputLength, bool skipOutput ) : double[]

Extract fields from a file into a numeric array for machine learning.

Normalize ( FileInfo file ) : void

Normalize the input file. Write to the specified file.

SetSourceFile ( FileInfo file, bool headers, CSVFormat format ) : void

Set the source file. This is useful if you want to use pre-existing stats to normalize something and skip the analyze step.

Private Methods

Method Description
WriteHeaders ( StreamWriter tw ) : void

Write the headers.

Method Details

Analyze() public method

Analyze the file.
public Analyze ( FileInfo inputFilename, bool expectInputHeaders, CSVFormat inputFormat, EncogAnalyst theAnalyst ) : void
inputFilename System.IO.FileInfo The input file.
expectInputHeaders bool True, if input headers are present.
inputFormat Encog.Util.CSV.CSVFormat The format.
theAnalyst Encog.App.Analyst.EncogAnalyst The analyst to use.
return void

ExtractFields() public static method

Extract fields from a file into a numeric array for machine learning.
public static ExtractFields ( EncogAnalyst analyst, CSVHeaders headers, ReadCSV csv, int outputLength, bool skipOutput ) : double[]
analyst Encog.App.Analyst.EncogAnalyst The analyst to use.
headers Encog.App.Analyst.Util.CSVHeaders The headers for the input data.
csv Encog.Util.CSV.ReadCSV The CSV that holds the input data.
outputLength int The length of the returned array.
skipOutput bool True if the output should be skipped.
return double[]

Normalize() public method

Normalize the input file. Write to the specified file.
public Normalize ( FileInfo file ) : void
file System.IO.FileInfo The file to write to.
return void

SetSourceFile() public method

Set the source file. This is useful if you want to use pre-existing stats to normalize something and skip the analyze step.
public SetSourceFile ( FileInfo file, bool headers, CSVFormat format ) : void
file System.IO.FileInfo The file to use.
headers bool True, if headers are to be expected.
format Encog.Util.CSV.CSVFormat The format of the CSV file.
return void