|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.EncogWriteHelper
public class EncogWriteHelper
Used to write an Encog EG/EGA file. EG files are used to hold Encog objects. EGA files are used to hold Encog Analyst scripts.
| Field Summary | |
|---|---|
static char |
COMMA
A comma char. |
static char |
QUOTE
A quote char. |
| Constructor Summary | |
|---|---|
EncogWriteHelper(OutputStream stream)
Construct the object. |
|
| Method Summary | |
|---|---|
void |
addColumn(ActivationFunction act)
|
void |
addColumn(boolean b)
Add a boolean value as a column. |
void |
addColumn(double d)
Add a column as a double. |
void |
addColumn(int i)
Add a column as an integer. |
void |
addColumn(String str)
Add a column as a string. |
void |
addColumns(List<String> cols)
Add a list of string columns. |
void |
addLine(String l)
Add a line. |
void |
addProperties(Map<String,String> properties)
Add the specified properties. |
void |
addSection(String str)
Add a new section. |
void |
addSubSection(String str)
Add a new subsection. |
void |
flush()
Flush the file. |
String |
getCurrentSection()
|
void |
write(String str)
Write the specified string. |
void |
writeLine()
Write the line. |
void |
writeProperty(String name,
ActivationFunction act)
Write a property as an activation function. |
void |
writeProperty(String name,
boolean value)
Write the property as a boolean. |
void |
writeProperty(String name,
CSVFormat csvFormat)
Write a property as a CSV format. |
void |
writeProperty(String name,
double value)
Write the property as a double. |
void |
writeProperty(String name,
double[] d)
Write the property as a double array. |
void |
writeProperty(String name,
int value)
Write a property as an int value. |
void |
writeProperty(String name,
int[] array)
Write a property as an int array. |
void |
writeProperty(String name,
Matrix matrix)
Write a matrix as a property. |
void |
writeProperty(String name,
String value)
Write the property a s string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char QUOTE
public static final char COMMA
| Constructor Detail |
|---|
public EncogWriteHelper(OutputStream stream)
stream - The stream to write to.| Method Detail |
|---|
public final void addColumn(boolean b)
b - The boolean value.public final void addColumn(double d)
d - The double to add.public final void addColumn(int i)
i - The integer to add.public final void addColumn(String str)
str - The string to add.public final void addColumns(List<String> cols)
cols - The columns to add.public final void addLine(String l)
l - The line to add.public final void addProperties(Map<String,String> properties)
properties - The properties.public final void addSection(String str)
str - The section to add.public final void addSubSection(String str)
str - The subsection.public final void flush()
public final String getCurrentSection()
public final void write(String str)
str - The string to write.public final void writeLine()
public final void writeProperty(String name,
ActivationFunction act)
name - The name of the property.act - The activation function.
public final void writeProperty(String name,
boolean value)
name - The name of the property.value - The boolean value.
public final void writeProperty(String name,
CSVFormat csvFormat)
name - The name of the property.csvFormat - The format.
public final void writeProperty(String name,
double value)
name - The name of the property.value - The value.
public final void writeProperty(String name,
double[] d)
name - The name of the property.d - The double value.
public final void writeProperty(String name,
int value)
name - The name of the property.value - The int value.
public final void writeProperty(String name,
int[] array)
name - The name of the property.array - The array.
public final void writeProperty(String name,
Matrix matrix)
name - The property name.matrix - The matrix.
public final void writeProperty(String name,
String value)
name - The name of the property.value - The value.public void addColumn(ActivationFunction act)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||