public class ComparingSynapse extends java.lang.Object implements ComparingElement
| Constructor and Description |
|---|
ComparingSynapse() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addResultSynapse(OutputPatternListener listener)
Adds an output synapse to which the result must be sent
|
protected void |
backward(double[] pattern)
Training phase.
|
java.util.TreeSet |
check()
Validation checks for invalid parameter values, misconfiguration, etc.
|
protected void |
forward(double[] pattern)
Recall phase
|
void |
fwdPut(Pattern pattern)
Method to put a pattern forward to the next layer
|
StreamInputSynapse |
getDesired()
Insert the method's description here.
|
int |
getInputDimension()
getInputDimension method comment.
|
Monitor |
getMonitor()
Insert the method's description here.
|
java.lang.String |
getName()
Returns the name of the output synapse
|
ComparisonSynapse |
getTheComparisonSynapse() |
LinearLayer |
getTheLinearLayer()
Returns the internal Layer used to transport the result to the connected output synapse
|
void |
init() |
boolean |
isEnabled()
Getter for property enabled.
|
boolean |
isOutputFull()
Getter for property outputFull.
|
void |
removeResultSynapse(OutputPatternListener listener)
Removes an output synapse
|
void |
reset()
Less intense than resetInput
|
void |
resetInput()
Resets the internal buffer of the desired StreamInputSynapse
|
Pattern |
revGet()
Returns the error pattern coming from the next layer during the training phase
|
protected void |
setArrays(int rows,
int cols)
Insert the method's description here.
|
boolean |
setDesired(StreamInputSynapse fn)
Setter for the desired data set
|
protected void |
setDimensions(int rows,
int cols) |
void |
setEnabled(boolean enabled)
Setter for property enabled.
|
void |
setInputDimension(int newInputDimension)
setInputDimension method.
|
void |
setMonitor(Monitor newMonitor)
Data di creazione: (06/04/00 23.33.24)
|
void |
setName(java.lang.String newName)
Sets the name of the output synapse
|
void |
setOutputFull(boolean outputFull)
Setter for property outputFull.
|
void |
setTheComparisonSynapse(ComparisonSynapse theComparisonSynapse)
Needed for Save as XML
|
void |
setTheLinearLayer(LinearLayer newTheLinearLayer)
Needed for Save as XML
|
void |
stop() |
public void fwdPut(Pattern pattern)
OutputPatternListenerfwdPut in interface OutputPatternListenerpattern - neural.engine.Patternpublic StreamInputSynapse getDesired()
getDesired in interface ComparingElementpublic int getInputDimension()
getInputDimension in interface OutputPatternListenerpublic Monitor getMonitor()
getMonitor in interface NeuralElementpublic LinearLayer getTheLinearLayer()
ComparingElementgetTheLinearLayer in interface ComparingElementpublic ComparisonSynapse getTheComparisonSynapse()
public Pattern revGet()
OutputPatternListenerrevGet in interface OutputPatternListenerpublic boolean setDesired(StreamInputSynapse fn)
ComparingElementsetDesired in interface ComparingElementpublic boolean addResultSynapse(OutputPatternListener listener)
ComparingElementaddResultSynapse in interface ComparingElementpublic void removeResultSynapse(OutputPatternListener listener)
ComparingElementremoveResultSynapse in interface ComparingElementpublic void setInputDimension(int newInputDimension)
setInputDimension in interface OutputPatternListenerpublic void setMonitor(Monitor newMonitor)
setMonitor in interface NeuralElementnewMonitor - neural.engine.Monitorpublic void stop()
public java.lang.String getName()
NeuralElementgetName in interface NeuralElementpublic void setName(java.lang.String newName)
NeuralElementsetName in interface NeuralElementnewName - Stringprotected void forward(double[] pattern)
pattern - double[] - pattern di input sul quale applicare la funzione di trasferimentoprotected void setArrays(int rows,
int cols)
protected void setDimensions(int rows,
int cols)
int - rows - righeint - cols - colonneprotected void backward(double[] pattern)
pattern - double[] - input patternpublic void setTheComparisonSynapse(ComparisonSynapse theComparisonSynapse)
public void setTheLinearLayer(LinearLayer newTheLinearLayer)
public void resetInput()
ComparingElementresetInput in interface ComparingElementpublic void reset()
reset in interface ComparingElementpublic java.util.TreeSet check()
NeuralElementcheck in interface NeuralElementpublic boolean isEnabled()
isEnabled in interface NeuralElementpublic void setEnabled(boolean enabled)
setEnabled in interface NeuralElementenabled - New value of property enabled.public boolean isOutputFull()
isOutputFull in interface OutputPatternListenerpublic void setOutputFull(boolean outputFull)
setOutputFull in interface OutputPatternListeneroutputFull - New value of property outputFull.public void init()
init in interface NeuralElementSubmit Feedback to pmarrone@users.sourceforge.net