org.simnet.neurons
Class AdditiveNeuron
java.lang.Object
org.simnet.interfaces.Neuron
org.simnet.neurons.AdditiveNeuron
- All Implemented Interfaces:
- GaugeSource
public class AdditiveNeuron
- extends Neuron
AdditiveNeuron See haykin (2002), section 14.5. Used with continnuous Hopfield networks.
|
Constructor Summary |
AdditiveNeuron()
Default constructor needed for external calls which create neurons then set their parameters. |
AdditiveNeuron(Neuron n)
This constructor is used when creating a neuron of one type from another neuron of another type Only values
common to different types of neuron are copied. |
| Methods inherited from class org.simnet.interfaces.Neuron |
addActivation, addSource, addTarget, checkBounds, clear, clip, connectedToWeight, containsString, debug, decrementActivation, deleteConnectedSynapses, deleteFanIn, deleteFanOut, duplicate, getActivation, getAverageInput, getBuffer, getFanIn, getFanOut, getGaugeValue, getHelp, getId, getIncrement, getInputValue, getLowerBound, getMotorCoupling, getNeuronTypeIndex, getNumberOfActiveInputs, getParentNetwork, getSensoryCoupling, getSummedIncomingWeights, getToolTipText, getTotalInput, getType, getTypeList, getUpperBound, getWeightedInputs, getX, getY, incrementActivation, initCastor, isInput, isOutput, randomize, randomizeBuffer, round, setActivation, setBuffer, setFanIn, setFanOut, setId, setIncrement, setInputValue, setLowerBound, setMotorCoupling, setParentNetwork, setSensoryCoupling, setTypeList, setUpperBound, setX, setY, toString, updateConnectedOutward |
AdditiveNeuron
public AdditiveNeuron()
- Default constructor needed for external calls which create neurons then set their parameters.
AdditiveNeuron
public AdditiveNeuron(Neuron n)
- This constructor is used when creating a neuron of one type from another neuron of another type Only values
common to different types of neuron are copied.
- Parameters:
n - Neuron to make of the type
getTimeType
public int getTimeType()
- Specified by:
getTimeType in class Neuron
- Returns:
- the time type.
duplicate
public Neuron duplicate()
- Specified by:
duplicate in class Neuron
- Returns:
- duplicate AdditiveNeuron (used, e.g., in copy/paste).
update
public void update()
- Update buffer of additive neuron using Euler's method.
- Specified by:
update in class Neuron
getName
public static String getName()
- Returns:
- Name of neuron type.
getLambda
public double getLambda()
- Returns:
- Returns the lambda.
setLambda
public void setLambda(double lambda)
- Parameters:
lambda - The lambda to set.
getResistance
public double getResistance()
- Returns:
- Returns the resistance.
setResistance
public void setResistance(double resistance)
- Parameters:
resistance - The resistance to set.
getNoiseGenerator
public RandomSource getNoiseGenerator()
- Returns:
- Noise generator dialog.
setNoiseGenerator
public void setNoiseGenerator(RandomSource noise)
- Parameters:
noise - The noise to set.
getAddNoise
public boolean getAddNoise()
- Returns:
- Returns the addNoise.
setAddNoise
public void setAddNoise(boolean addNoise)
- Parameters:
addNoise - The addNoise to set.
getClipping
public boolean getClipping()
- Returns:
- Returns the clipping.
setClipping
public void setClipping(boolean clipping)
- Parameters:
clipping - The clipping to set.