|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.data.buffer.codec.ExcelCODEC
public class ExcelCODEC
A CODEC that can read/write Microsoft Excel (*.XLSX) files.
| Constructor Summary | |
|---|---|
ExcelCODEC(File theFile)
Constructor to create Excel from binary. |
|
ExcelCODEC(File theFile,
int theInputCount,
int theIdealCount)
Create a CODEC to load data from Excel to binary. |
|
| Method Summary | |
|---|---|
void |
close()
Close any open files. |
int |
getIdealSize()
|
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,
double[] significance)
Read one record of data from an external source. |
void |
write(double[] input,
double[] ideal,
double significance)
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 ExcelCODEC(File theFile)
theFile - The CSV file to create.
public ExcelCODEC(File theFile,
int theInputCount,
int theIdealCount)
theFile - The Excel file to load.theInputCount - The number of input columns.theIdealCount - The number of ideal columns.| Method Detail |
|---|
public final void close()
close in interface DataSetCODECpublic final int getIdealSize()
getIdealSize in interface DataSetCODECpublic final int getInputSize()
getInputSize in interface DataSetCODECpublic final void prepareRead()
prepareRead in interface DataSetCODEC
public final 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 final boolean read(double[] input,
double[] ideal,
double[] significance)
read in interface DataSetCODECinput - The input data array.ideal - The ideal data array.
public final void write(double[] input,
double[] ideal,
double significance)
write in interface DataSetCODECinput - The input data array.ideal - The ideal data array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||