Package network.aika.neuron
Class Synapse.Builder
- java.lang.Object
-
- network.aika.neuron.Synapse.Builder
-
- All Implemented Interfaces:
Neuron.Builder
- Enclosing class:
- Synapse
public static class Synapse.Builder extends Object implements Neuron.Builder
TheBuilderclass is just a helper class which is used to initialize a neuron. Most of the parameters of this class will be mapped to a input synapse for this neuron.- Author:
- Lukas Molzberger
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SynapsegetSynapse(Neuron outputNeuron)protected Synapse.SynapseFactorygetSynapseFactory()IntegergetSynapseId()voidregisterSynapseIds(Neuron n)Synapse.BuildersetIdentity(boolean identity)Synapse.BuildersetLimit(double limit)Synapse.BuildersetNeuron(INeuron neuron)Determines the input neuron.Synapse.BuildersetNeuron(Neuron neuron)Determines the input neuron.Synapse.BuildersetRecurrent(boolean recurrent)The propertyrecurrentspecifies if input is a recurrent feedback link.Synapse.BuildersetSynapseId(int synapseId)Synapse.BuildersetWeight(double weight)The synapse weight of this input.
-
-
-
Method Detail
-
getSynapseId
public Integer getSynapseId()
-
setRecurrent
public Synapse.Builder setRecurrent(boolean recurrent)
The propertyrecurrentspecifies if input is a recurrent feedback link. Recurrent feedback links can be either negative or positive depending on the weight of the synapse. Recurrent feedback links kind of allow to use future information as inputs of a current neuron. Aika allows this by making assumptions about the recurrent input neuron. The classSearchNodemodifies these assumptions until the best interpretation for this document is found.- Parameters:
recurrent-- Returns:
-
setNeuron
public Synapse.Builder setNeuron(Neuron neuron)
Determines the input neuron.- Parameters:
neuron-- Returns:
-
setNeuron
public Synapse.Builder setNeuron(INeuron neuron)
Determines the input neuron.- Parameters:
neuron-- Returns:
-
setWeight
public Synapse.Builder setWeight(double weight)
The synapse weight of this input.- Parameters:
weight-- Returns:
-
setLimit
public Synapse.Builder setLimit(double limit)
-
setIdentity
public Synapse.Builder setIdentity(boolean identity)
-
setSynapseId
public Synapse.Builder setSynapseId(int synapseId)
-
registerSynapseIds
public void registerSynapseIds(Neuron n)
- Specified by:
registerSynapseIdsin interfaceNeuron.Builder
-
getSynapseFactory
protected Synapse.SynapseFactory getSynapseFactory()
-
-