|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthhreco.recognition.MSTrainingWriter
MSTrainingWriter (Multi-Stroke Training Writer) takes a MSTrainingModel and outputs its content to an outputstream.
Constructor Summary | |
MSTrainingWriter()
|
Method Summary | |
static void |
writeExample(TimedStroke[] strokes,
boolean label,
java.io.Writer writer)
Write the stroke information (x, y, timestamp) and its label (indicating either positive or negative example) to the character-output stream. |
static void |
writeHeader(java.io.Writer writer)
Write header information to the character-output stream. |
void |
writeModel(java.lang.Object m,
java.io.OutputStream out)
Write the training model to the output stream. |
void |
writeModel(java.lang.Object m,
java.io.Writer writer)
Write the training model to the character-output stream. |
static void |
writeStroke(TimedStroke s,
java.io.Writer writer)
Write out the sequence of points in the stroke. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MSTrainingWriter()
Method Detail |
public void writeModel(java.lang.Object m, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void writeModel(java.lang.Object m, java.io.Writer writer) throws java.io.IOException
writeModel
in interface ModelWriter
java.io.IOException
public static void writeExample(TimedStroke[] strokes, boolean label, java.io.Writer writer) throws java.io.IOException
java.io.IOException
public static void writeStroke(TimedStroke s, java.io.Writer writer) throws java.io.IOException
java.io.IOException
public static void writeHeader(java.io.Writer writer) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |