public class PersistBasicPNN extends java.lang.Object implements EncogPersistor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_outputMode
The output mode property.
|
| Constructor and Description |
|---|
PersistBasicPNN() |
| Modifier and Type | Method and Description |
|---|---|
int |
getFileVersion() |
java.lang.String |
getPersistClassString() |
static java.lang.String |
kernelToString(PNNKernelType k)
Convert a kernel type to a string.
|
static java.lang.String |
outputModeToString(PNNOutputMode mode)
Convert output mode to string.
|
java.lang.Object |
read(java.io.InputStream is)
Read the object from an input stream.
|
void |
save(java.io.OutputStream os,
java.lang.Object obj)
Save the object.
|
static PNNKernelType |
stringToKernel(java.lang.String k)
Convert a string to a PNN kernel.
|
static PNNOutputMode |
stringToOutputMode(java.lang.String mode)
Convert a string to a PNN output mode.
|
public static final java.lang.String PROPERTY_outputMode
public static java.lang.String kernelToString(PNNKernelType k)
k - The kernel type.public static java.lang.String outputModeToString(PNNOutputMode mode)
mode - The output mode.public static PNNKernelType stringToKernel(java.lang.String k)
k - The string.public static PNNOutputMode stringToOutputMode(java.lang.String mode)
mode - The string.public int getFileVersion()
getFileVersion in interface EncogPersistorpublic java.lang.String getPersistClassString()
getPersistClassString in interface EncogPersistorpublic java.lang.Object read(java.io.InputStream is)
read in interface EncogPersistoris - The input stream.public void save(java.io.OutputStream os,
java.lang.Object obj)
save in interface EncogPersistoros - The output stream to save to.obj - The object to save.