org.simnet.neurons
Class IzhikevichNeuron
java.lang.Object
org.simnet.interfaces.Neuron
org.simnet.neurons.IzhikevichNeuron
- All Implemented Interfaces:
- GaugeSource, SpikingNeuron
public class IzhikevichNeuron
- extends Neuron
- implements SpikingNeuron
IzhikevichNeuron.
|
Constructor Summary |
IzhikevichNeuron()
Default constructor needed for external calls which create neurons then set their parameters. |
IzhikevichNeuron(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 |
IzhikevichNeuron
public IzhikevichNeuron()
- Default constructor needed for external calls which create neurons then set their parameters.
IzhikevichNeuron
public IzhikevichNeuron(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:
- Time type.
duplicate
public Neuron duplicate()
- Specified by:
duplicate in class Neuron
- Returns:
- duplicate IzhikevichNeuron (used, e.g., in copy/paste).
update
public void update()
- Updates the neuron.
- Specified by:
update in class Neuron
hasSpiked
public boolean hasSpiked()
- Specified by:
hasSpiked in interface SpikingNeuron
- Returns:
- Has the neuron spiked.
getA
public double getA()
- Returns:
- Returns the a.
setA
public void setA(double a)
- Parameters:
a - The a to set.
getB
public double getB()
- Returns:
- Returns the b.
setB
public void setB(double b)
- Parameters:
b - The b to set.
getC
public double getC()
- Returns:
- Returns the c.
setC
public void setC(double c)
- Parameters:
c - The c to set.
getD
public double getD()
- Returns:
- Returns the d.
setD
public void setD(double d)
- Parameters:
d - The d to set.
getName
public static String getName()
- Returns:
- Name of the neuron type.
getAddNoise
public boolean getAddNoise()
- Returns:
- Returns the addNoise.
setAddNoise
public void setAddNoise(boolean addNoise)
- Parameters:
addNoise - The addNoise to set.
getNoiseGenerator
public RandomSource getNoiseGenerator()
- Returns:
- Returns the noiseGenerator.
setNoiseGenerator
public void setNoiseGenerator(RandomSource noiseGenerator)
- Parameters:
noiseGenerator - The noiseGenerator to set.