public class BinaryPerceptronModelWriter extends PerceptronModelWriter
| Constructor and Description |
|---|
BinaryPerceptronModelWriter(AbstractModel model,
java.io.DataOutputStream dos)
Constructor which takes a GISModel and a DataOutputStream and prepares
itself to write the model to that stream.
|
BinaryPerceptronModelWriter(AbstractModel model,
java.io.File f)
Constructor which takes a GISModel and a File and prepares itself to
write the model to that file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeDouble(double d) |
void |
writeInt(int i) |
void |
writeUTF(java.lang.String s) |
persistpublic BinaryPerceptronModelWriter(AbstractModel model, java.io.File f) throws java.io.IOException
model - The GISModel which is to be persisted.f - The File in which the model is to be persisted.java.io.IOExceptionpublic BinaryPerceptronModelWriter(AbstractModel model, java.io.DataOutputStream dos)
model - The GISModel which is to be persisted.dos - The stream which will be used to persist the model.public void writeUTF(java.lang.String s)
throws java.io.IOException
writeUTF in class AbstractModelWriterjava.io.IOExceptionpublic void writeInt(int i)
throws java.io.IOException
writeInt in class AbstractModelWriterjava.io.IOExceptionpublic void writeDouble(double d)
throws java.io.IOException
writeDouble in class AbstractModelWriterjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class AbstractModelWriterjava.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved