C# Class Encog.Neural.Data.Buffer.EncogEGBFile

Reads in little endian form.
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Close the file.

Create ( int inputCount, int idealCount ) : void

Create a new RGB file.

EncogEGBFile ( String file ) : System

Construct an EGB file.

Open ( ) : void

Open an existing EGB file.

Read ( ) : double

Read a single double.

Read ( int row, int col ) : double

Read a row and column.

Read ( double d ) : void

Read an array of doubles.

Read ( int row, double d ) : void

Read a double array at the specified record.

SetLocation ( int row ) : void

Set the current location to the specified row.

Write ( byte b ) : void

Write a byte.

Write ( double v ) : void

Write an array.

Write ( int row, double v ) : void

Write an array at the specified record.

Write ( int row, int col, double v ) : void

Write the specified row and column.

Private Methods

Method Description
CalculateIndex ( int row ) : int

Calculate the index for the specified row.

CalculateIndex ( int row, int col ) : int

Read a row and column.

Method Details

Close() public method

Close the file.
public Close ( ) : void
return void

Create() public method

Create a new RGB file.
public Create ( int inputCount, int idealCount ) : void
inputCount int The input count.
idealCount int The ideal count.
return void

EncogEGBFile() public method

Construct an EGB file.
public EncogEGBFile ( String file ) : System
file String The file.
return System

Open() public method

Open an existing EGB file.
public Open ( ) : void
return void

Read() public method

Read a single double.
public Read ( ) : double
return double

Read() public method

Read a row and column.
public Read ( int row, int col ) : double
row int The row to read.
col int The column to read.
return double

Read() public method

Read an array of doubles.
public Read ( double d ) : void
d double The array to read into.
return void

Read() public method

Read a double array at the specified record.
public Read ( int row, double d ) : void
row int The record to read.
d double The array to read into.
return void

SetLocation() public method

Set the current location to the specified row.
public SetLocation ( int row ) : void
row int The row.
return void

Write() public method

Write a byte.
public Write ( byte b ) : void
b byte The byte to write.
return void

Write() public method

Write an array.
public Write ( double v ) : void
v double The array to write.
return void

Write() public method

Write an array at the specified record.
public Write ( int row, double v ) : void
row int The record to write.
v double The array to write.
return void

Write() public method

Write the specified row and column.
public Write ( int row, int col, double v ) : void
row int The row.
col int The column.
v double The value.
return void