|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joone.engine.Synapse
org.joone.engine.BufferedSynapse
public class BufferedSynapse
This class implements a synapse that permits to have asynchronous
methods to write output patterns.
The fwdPut
method, infact, uses a FIFO structure to
store the patterns and to separate the writing from the reading layers.
Field Summary |
---|
Fields inherited from class org.joone.engine.Synapse |
---|
array, b_pattern, bitems, bouts, count, enabled, fwdLock, inps, items, learnable, m_batch, m_pattern, myLearner, outs, revLock |
Constructor Summary | |
---|---|
BufferedSynapse()
BufferedOutputSynapse constructor. |
Method Summary | |
---|---|
protected void |
backward(double[] pattern)
Funzione di TRAIN dell'elemento. |
protected void |
forward(double[] pattern)
Recall function |
Pattern |
fwdGet()
Return the first element of the FIFO structure, if exists. |
void |
fwdPut(Pattern pattern)
Writes the input pattern into the FIFO structure. |
Pattern |
revGet()
Not used |
void |
revPut(Pattern pattern)
Not used |
protected void |
setArrays(int rows,
int cols)
setArrays method comment. |
protected void |
setDimensions(int rows,
int cols)
setDimensions method comment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferedSynapse()
Method Detail |
---|
protected void backward(double[] pattern)
Synapse
backward
in class Synapse
pattern
- double[] - pattern di input sul quale applicare la funzione di trasferimentoprotected void forward(double[] pattern)
Synapse
forward
in class Synapse
pattern
- double[] - input pattern. THIS PATTERN CANNOT BE CHANGEDpublic Pattern fwdGet()
fwdGet
in interface InputPatternListener
fwdGet
in class Synapse
public void fwdPut(Pattern pattern)
fwdPut
in interface OutputPatternListener
fwdPut
in class Synapse
pattern
- The Pattern object to write in the FIFO structurepublic Pattern revGet()
revGet
in interface OutputPatternListener
revGet
in class Synapse
public void revPut(Pattern pattern)
revPut
in interface InputPatternListener
revPut
in class Synapse
pattern
- protected void setArrays(int rows, int cols)
setArrays
in class Synapse
protected void setDimensions(int rows, int cols)
setDimensions
in class Synapse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |