|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.data.buffer.codec.ArrayDataCODEC
public class ArrayDataCODEC
A CODEC used for arrays.
| Constructor Summary | |
|---|---|
ArrayDataCODEC()
Default constructor. |
|
ArrayDataCODEC(double[][] input,
double[][] ideal)
Construct an array CODEC. |
|
| Method Summary | |
|---|---|
void |
close()
Close any open files. |
double[][] |
getIdeal()
|
int |
getIdealSize()
|
double[][] |
getInput()
|
int |
getInputSize()
|
void |
prepareRead()
Prepare to read from an external data source. |
void |
prepareWrite(int recordCount,
int inputSize,
int idealSize)
Prepare to write to an external data destination. |
boolean |
read(double[] input,
double[] ideal)
Read one record of data from an external source. |
void |
write(double[] input,
double[] ideal)
Write one record of data to an external destination. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayDataCODEC(double[][] input,
double[][] ideal)
input - The input array.ideal - The ideal array.public ArrayDataCODEC()
| Method Detail |
|---|
public int getInputSize()
getInputSize in interface DataSetCODECpublic int getIdealSize()
getIdealSize in interface DataSetCODEC
public boolean read(double[] input,
double[] ideal)
read in interface DataSetCODECinput - The input data array.ideal - The ideal data array.
public void write(double[] input,
double[] ideal)
write in interface DataSetCODECinput - The input data array.ideal - The ideal data array.
public void prepareWrite(int recordCount,
int inputSize,
int idealSize)
prepareWrite in interface DataSetCODECrecordCount - The total record count, that will be written.inputSize - The input size.idealSize - The ideal size.public double[][] getInput()
public double[][] getIdeal()
public void prepareRead()
prepareRead in interface DataSetCODECpublic void close()
close in interface DataSetCODEC
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||