|
Nengo.ca | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.nengo.model.neuron.impl.SpikingNeuron
public class SpikingNeuron
A neuron model composed of a SynapticIntegrator and a SpikeGenerator.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface ca.nengo.util.VisiblyMutable |
|---|
VisiblyMutable.Event, VisiblyMutable.Listener, VisiblyMutable.NameChangeEvent, VisiblyMutable.NodeRemovedEvent |
| Nested classes/interfaces inherited from interface ca.nengo.util.VisiblyMutable |
|---|
VisiblyMutable.Event, VisiblyMutable.Listener, VisiblyMutable.NameChangeEvent, VisiblyMutable.NodeRemovedEvent |
| Field Summary | |
|---|---|
static java.lang.String |
CURRENT
Name of Origin representing unscaled and unbiased current entering the soma. |
| Fields inherited from interface ca.nengo.model.neuron.Neuron |
|---|
AXON |
| Constructor Summary | |
|---|---|
SpikingNeuron(SynapticIntegrator integrator,
SpikeGenerator generator,
float scale,
float bias,
java.lang.String name)
Note: current = scale * (weighted sum of inputs at each termination) * (radial input) + bias. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(VisiblyMutable.Listener listener)
|
SpikingNeuron |
clone()
|
protected void |
fireVisibleChangeEvent()
Called by subclasses when properties have changed in such a way that the display of the ensemble may need updating. |
float |
getBias()
|
java.lang.String |
getDocumentation()
|
SpikeGenerator |
getGenerator()
|
TimeSeries |
getHistory(java.lang.String stateName)
Available states include "I" (net current into SpikeGenerator) and the states of the SpikeGenerator. |
SynapticIntegrator |
getIntegrator()
|
SimulationMode |
getMode()
|
java.lang.String |
getName()
|
Noise |
getNoise()
|
Origin |
getOrigin(java.lang.String name)
|
Origin[] |
getOrigins()
|
float |
getScale()
|
Termination |
getTermination(java.lang.String name)
|
Termination[] |
getTerminations()
|
java.util.Properties |
listStates()
|
void |
removeChangeListener(VisiblyMutable.Listener listener)
|
void |
reset(boolean randomize)
|
void |
run(float startTime,
float endTime)
Runs the Node (including all its components), updating internal state and outputs as needed. |
void |
setBias(float bias)
|
void |
setDocumentation(java.lang.String text)
|
void |
setGenerator(SpikeGenerator generator)
|
void |
setIntegrator(SynapticIntegrator integrator)
|
void |
setMode(SimulationMode mode)
Sets the object to run in either the given mode or the closest mode that it supports (all ModeConfigurables must support SimulationMode.DEFAULT, and must default to this mode). |
void |
setName(java.lang.String name)
|
void |
setNoise(Noise noise)
|
void |
setRadialInput(float value)
|
void |
setScale(float scale)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CURRENT
| Constructor Detail |
|---|
public SpikingNeuron(SynapticIntegrator integrator,
SpikeGenerator generator,
float scale,
float bias,
java.lang.String name)
integrator - SynapticIntegrator used to model dendritic/somatic integration of inputs
to this Neurongenerator - SpikeGenerator used to model spike generation at the axon hillock of this
Neuronscale - A coefficient that scales summed inputbias - A bias current that models unaccounted-for inputs and/or intrinsic currentsname - A unique name for this neuron in the context of the Network or Ensemble to which
it belongs| Method Detail |
|---|
public void run(float startTime,
float endTime)
throws SimulationException
Node
run in interface NodestartTime - simulation time at which running starts (s)endTime - simulation time at which running ends (s)
SimulationException - if a problem is encountered while trying to runNode.run(float, float)public Origin[] getOrigins()
getOrigins in interface NodeNode.getOrigins()
public Origin getOrigin(java.lang.String name)
throws StructuralException
getOrigin in interface Nodename - Name of an Origin on this Node
StructuralException - if the named Origin does not existNode.getOrigin(java.lang.String)public void setMode(SimulationMode mode)
SimulationMode.ModeConfigurable
setMode in interface SimulationMode.ModeConfigurablemode - SimulationMode in which it is desired that the object runs.SimulationMode.ModeConfigurable.setMode(ca.nengo.model.SimulationMode)public SimulationMode getMode()
getMode in interface SimulationMode.ModeConfigurableSimulationMode.ModeConfigurable.getMode()public void reset(boolean randomize)
reset in interface Resettablerandomize - True indicates that the object should be reset to a
randomly selected initial state (the object must be aware of the
distribution from which to draw from). False indicates that the
object should be reset to a fixed initial state (which it must
also know). Some objects may not support randomization of the initial
state, in which case a fixed state will be used in either case.Resettable.reset(boolean)
public TimeSeries getHistory(java.lang.String stateName)
throws SimulationException
getHistory in interface ProbeablestateName - A state variable name
SimulationException - if the Probeable does not have the requested stateProbeable.getHistory(java.lang.String)public java.util.Properties listStates()
listStates in interface ProbeableProbeable.listStates()public java.lang.String getName()
getName in interface NodeNode.getName()
public void setName(java.lang.String name)
throws StructuralException
setName in interface Nodename - The new name
StructuralException - if name already exists?public float getScale()
public void setScale(float scale)
scale - New scaling coefficientpublic float getBias()
public void setBias(float bias)
bias - New bias currentpublic SynapticIntegrator getIntegrator()
public void setIntegrator(SynapticIntegrator integrator)
integrator - New synaptic integratorpublic SpikeGenerator getGenerator()
public void setGenerator(SpikeGenerator generator)
generator - New SpikeGeneratorpublic Termination[] getTerminations()
getTerminations in interface NodeNode.getTerminations()
public Termination getTermination(java.lang.String name)
throws StructuralException
getTermination in interface Nodename - Name of a Termination onto this Node
StructuralException - if the named Termination does not existNode.getTermination(java.lang.String)public void setRadialInput(float value)
setRadialInput in interface NEFNodevalue - Value of filtered summary input. This value is typically in the range
[-1 1], and correponds to an inner product of vectors in the space
represented by the NEFEnsemble to which this Node belongs.NEFNode.setRadialInput(float)public java.lang.String getDocumentation()
getDocumentation in interface NodeNode.getDocumentation()public void setDocumentation(java.lang.String text)
setDocumentation in interface Nodetext - New user-specified documentation for the NodeNode.setDocumentation(java.lang.String)public void addChangeListener(VisiblyMutable.Listener listener)
addChangeListener in interface VisiblyMutablelistener - Listener to addVisiblyMutable.addChangeListener(ca.nengo.util.VisiblyMutable.Listener)public void removeChangeListener(VisiblyMutable.Listener listener)
removeChangeListener in interface VisiblyMutablelistener - Listener to removeVisiblyMutable.removeChangeListener(ca.nengo.util.VisiblyMutable.Listener)protected void fireVisibleChangeEvent()
public SpikingNeuron clone()
throws java.lang.CloneNotSupportedException
clone in interface Nodeclone in class java.lang.Objectjava.lang.CloneNotSupportedException - if clone can't be madepublic void setNoise(Noise noise)
noise - Noise object to apply to this neuronpublic Noise getNoise()
|
Nengo.ca | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||