org.simnet.neurons
Class IntegrateAndFireNeuron

java.lang.Object
  extended by org.simnet.interfaces.Neuron
      extended by org.simnet.neurons.IntegrateAndFireNeuron
All Implemented Interfaces:
GaugeSource, SpikingNeuron

public class IntegrateAndFireNeuron
extends Neuron
implements SpikingNeuron

IntegrateAndFireNeuron.


Field Summary
 
Fields inherited from class org.simnet.interfaces.Neuron
activation, fanIn, fanOut, lowerBound, upperBound
 
Constructor Summary
IntegrateAndFireNeuron()
          Default constructor needed for external calls which create neurons then set their parameters.
IntegrateAndFireNeuron(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.
 
Method Summary
 Neuron duplicate()
           
 boolean getAddNoise()
           
 boolean getClipping()
           
static String getName()
           
 RandomSource getNoiseGenerator()
           
 double getResetPotential()
           
 double getResistance()
           
 double getRestingPotential()
           
 double getThreshold()
           
 double getTimeConstant()
           
 int getTimeType()
           
 boolean hasSpiked()
           
 void setAddNoise(boolean addNoise)
           
 void setAddNoise(RandomSource noise)
           
 void setClipping(boolean clipping)
           
 void setNoiseGenerator(RandomSource noiseGenerator)
           
 void setResetPotential(double resetPotential)
           
 void setResistance(double resistance)
           
 void setRestingPotential(double restingPotential)
           
 void setThreshold(double threshold)
           
 void setTimeConstant(double timeConstant)
           
 void update()
          Update neuron.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegrateAndFireNeuron

public IntegrateAndFireNeuron()
Default constructor needed for external calls which create neurons then set their parameters.


IntegrateAndFireNeuron

public IntegrateAndFireNeuron(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 be made type integrate and fire
Method Detail

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 IntegrateAndFireNeuron (used, e.g., in copy/paste).

update

public void update()
Update neuron.

Specified by:
update in class Neuron

getRestingPotential

public double getRestingPotential()
Returns:
Returns the lowerValue.

setRestingPotential

public void setRestingPotential(double restingPotential)
Parameters:
restingPotential - The restingPotential to set.

getResistance

public double getResistance()
Returns:
Returns the upperValue.

setResistance

public void setResistance(double resistance)
Parameters:
resistance - The resistance to set.

getName

public static String getName()
Returns:
Name of neuron type.

getAddNoise

public boolean getAddNoise()
Returns:
Returns the lowerValue.

setAddNoise

public void setAddNoise(boolean addNoise)
Parameters:
addNoise - The addNoise to set.

setAddNoise

public void setAddNoise(RandomSource noise)
Parameters:
noise - The noise to set.

getClipping

public boolean getClipping()
Returns:
Returns the clipping.

setClipping

public void setClipping(boolean clipping)
Parameters:
clipping - The clipping to set.

getNoiseGenerator

public RandomSource getNoiseGenerator()
Returns:
Returns the noiseGenerator.

setNoiseGenerator

public void setNoiseGenerator(RandomSource noiseGenerator)
Parameters:
noiseGenerator - The noiseGenerator to set.

getResetPotential

public double getResetPotential()
Returns:
Returns the resetPotential.

setResetPotential

public void setResetPotential(double resetPotential)
Parameters:
resetPotential - The resetPotential to set.

getThreshold

public double getThreshold()
Returns:
Returns the threshold.

setThreshold

public void setThreshold(double threshold)
Parameters:
threshold - The threshold to set.

getTimeConstant

public double getTimeConstant()
Returns:
Returns the timeConstant.

setTimeConstant

public void setTimeConstant(double timeConstant)
Parameters:
timeConstant - The timeConstant to set.

hasSpiked

public boolean hasSpiked()
Specified by:
hasSpiked in interface SpikingNeuron
Returns:
Returns the hasSpiked.