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()
Neuron
getTimeOfNextFire
in interface Neuron
public boolean realFire()
public void setRecord(boolean record)
Neuron
public void setTHost(long id)
Neuron
public void setTimeOfNextFire(double arg0)
Neuron
setTimeOfNextFire
in interface Neuron
arg0
- the new value to be usedpublic void init(int expid, int trialid, Seed seed, Network network, int id)
Neuron
public double updateFire()
Neuron
updateFire
in interface Neuron
public double updateInput(double dummyTime, Synapse input)
Neuron
updateInput
in interface Neuron
input
- it is a InputEvent event in the input queue