public class DelayedConnection extends Connection
fromNeuron, toNeuron, weight
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
|
Modifier and Type | Method and Description |
---|---|
int |
getDelay()
Returns delay value for this connection
|
double |
getInput()
Gets delayed input through this connection
|
void |
setDelay(int delay)
Sets delay value for this connection
|
clone, equals, getFromNeuron, getToNeuron, getWeight, getWeightedInput, hashCode, setWeight, toString
public DelayedConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal, int delay)
fromNeuron
- neuron to connect (source neuron)toNeuron
- neuron to connect to (destination neuron)weightVal
- weight value for the connectiondelay
- delay for the connectionpublic int getDelay()
public void setDelay(int delay)
delay
- value for this connectionpublic double getInput()
getInput
in class Connection
Copyright © 2019 Neuroph Project. All rights reserved.