org.neuroph.nnet.comp
Class DelayedConnection
- java.lang.Object
-
- org.neuroph.core.Connection
-
- org.neuroph.nnet.comp.DelayedConnection
-
- All Implemented Interfaces:
- java.io.Serializable
public class DelayedConnection extends Connection
Represents the connection between neurons which can delay signal.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DelayedConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal, int delay)Creates an instance of delayed connection to cpecified neuron and with specified weight
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetDelay()Returns delay value for this connectiondoublegetInput()Gets delayed input through this connectionvoidsetDelay(int delay)Sets delay value for this connection-
Methods inherited from class org.neuroph.core.Connection
clone, equals, getFromNeuron, getToNeuron, getWeight, getWeightedInput, hashCode, setWeight, toString
-
-
-
-
Constructor Detail
-
DelayedConnection
public DelayedConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal, int delay)
Creates an instance of delayed connection to cpecified neuron and with specified weight- Parameters:
fromNeuron- neuron to connect (source neuron)toNeuron- neuron to connect to (destination neuron)weightVal- weight value for the connectiondelay- delay for the connection
-
-
Method Detail
-
getDelay
public int getDelay()
Returns delay value for this connection- Returns:
- delay value for this connection
-
setDelay
public void setDelay(int delay)
Sets delay value for this connection- Parameters:
delay- value for this connection
-
getInput
public double getInput()
Gets delayed input through this connection- Overrides:
getInputin classConnection- Returns:
- delayed output from connected neuron
-
-
DMelt 3.0 © DataMelt by jWork.ORG