public final class BKPoissonNeuron extends Object implements Neuron, Serializable
| Modifier and Type | Field and Description |
|---|---|
long |
tHost
Target Host id, binary format
|
double |
time |
| Constructor and Description |
|---|
BKPoissonNeuron(Seed idum,
BKPoissonNeuronPara para) |
| 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 seed,
Network network,
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 arg0)
set a new value to timeOfNextFire
|
String |
toString() |
double |
updateFire()
update of the neuron after firing
the current time is TimeOfNextFire
|
double |
updateInput(double dummyTime,
Synapse input)
update of the neuron after receiving a spike
the current time is time
|
public BKPoissonNeuron(Seed idum, BKPoissonNeuronPara para)
public double[] getCurr(double currTime)
public double getMemV(double currTime)
public long getTHost()
public double getTimeOfNextFire()
NeurongetTimeOfNextFire in interface Neuronpublic boolean realFire()
public void setRecord(boolean record)
Neuronpublic void setTHost(long id)
Neuronpublic void setTimeOfNextFire(double arg0)
NeuronsetTimeOfNextFire in interface Neuronarg0 - the new value to be usedpublic void init(int expid, int trialid, Seed seed, Network network, int id)
Neuronpublic double updateFire()
NeuronupdateFire in interface Neuronpublic double updateInput(double dummyTime, Synapse input)
NeuronupdateInput in interface Neuroninput - it is a InputEvent event in the input queue