org.joone.io
Class MemoryOutputSynapse
- java.lang.Object
-
- org.joone.engine.Synapse
-
- org.joone.io.StreamOutputSynapse
-
- org.joone.io.MemoryOutputSynapse
-
- All Implemented Interfaces:
- java.io.Serializable, InputPatternListener, Learnable, LearnableSynapse, NeuralElement, OutputPatternListener, Inspectable, PlugInListener
public class MemoryOutputSynapse extends StreamOutputSynapse
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MemoryOutputSynapse()Creates a new instance of MemoryOutputSynapse
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.VectorgetAllPatterns()Waits for the stopPattern and then returns all the patterns received in the last cycledouble[]getLastPattern()This method waits for the zeroPattern and returns the last valid pattern receiveddouble[]getNextPattern()Waits for the next pattern and returns itvoidwrite(Pattern pattern)Custom Synapses need to implement at least this method.-
Methods inherited from class org.joone.io.StreamOutputSynapse
addPlugIn, check, dataChanged, fwdPut, getPlugIn, getSeparator, isBuffered, removeAllPlugIns, revGet, setBuffered, setPlugIn, setSeparator
-
Methods inherited from class org.joone.engine.Synapse
addNoise, canCountSteps, fwdGet, getIgnoreBefore, getInputDimension, getLearner, getLearningRate, getMomentum, getMonitor, getName, getOutputDimension, getWeights, init, initLearner, InspectableTitle, Inspections, isEnabled, isInputFull, isLoopBack, isOutputFull, randomize, reset, revPut, setEnabled, setIgnoreBefore, setInputDimension, setInputFull, setLearningRate, setLoopBack, setMomentum, setMonitor, setName, setOutputDimension, setOutputFull, setWeights
-
-
-
-
Constructor Detail
-
MemoryOutputSynapse
public MemoryOutputSynapse()
Creates a new instance of MemoryOutputSynapse
-
-
Method Detail
-
getLastPattern
public double[] getLastPattern()
This method waits for the zeroPattern and returns the last valid pattern received- Returns:
- the last pattern received
-
getNextPattern
public double[] getNextPattern()
Waits for the next pattern and returns it- Returns:
- the next pattern
-
getAllPatterns
public java.util.Vector getAllPatterns()
Waits for the stopPattern and then returns all the patterns received in the last cycle- Returns:
- all the patterns received in the last cycle
-
write
public void write(Pattern pattern)
Custom Synapses need to implement at least this method. The custom synapse should write the pattern out to the appropriate media. All patterns including the ending pattern with pattern.getCount()=-1 will be passed to this method so that custom output synapses can perform final processing.- Specified by:
writein classStreamOutputSynapse
-
-
DataMelt 3.0 © DataMelt by jWork.ORG