public final class SYNNeuron extends Object implements Neuron, Serializable
| Modifier and Type | Field and Description |
|---|---|
double |
tick |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getCurr(double currTime) |
double |
getMemV(double currTime) |
boolean |
getRecord()
record the neuron
|
long |
getTHost() |
double |
getTimeOfNextFire()
get the value of timeOfNextFire
|
void |
init(int expid,
int trialid,
Seed idum,
Network net,
int id)
initialize the neuron
|
boolean |
isSensory()
sensory report
|
boolean |
realFire() |
void |
setRecord(boolean record)
set the neuron record or not.
|
void |
setTHost(long id)
set the target host id //0 means none , 1 means yes
|
void |
setTimeOfNextFire(double nextFire)
set a new value to timeOfNextFire
|
double |
timeOfFire(double curr) |
String |
toString() |
double |
updateFire()
update of the neuron after firing
the current time is TimeOfNextFire
|
double |
updateInput(double time,
Synapse input)
update of the neuron after receiving a spike
the current time is time
|
public double tick
public void setTimeOfNextFire(double nextFire)
NeuronsetTimeOfNextFire in interface NeuronnextFire - the new value to be usedpublic double timeOfFire(double curr)
timeOfFirepublic double updateFire()
NeuronupdateFire in interface NeuronupdateFirepublic double updateInput(double time, Synapse input)
NeuronupdateInput in interface Neuroninput - it is a InputEvent event in the input queueupdateInputpublic double getTimeOfNextFire()
NeurongetTimeOfNextFire in interface NeurongetTimeOfNextFirepublic void init(int expid, int trialid, Seed idum, Network net, int id)
init in interface NeuronNeuron.init(int,int,Seed,Network,int)public boolean getRecord()
public void setRecord(boolean record)
public double getMemV(double currTime)
public double[] getCurr(double currTime)
public long getTHost()
getTHost in interface NeuronNeuron.getTHost()public void setTHost(long id)
public boolean realFire()
realFire in interface NeuronNeuron.realFire()