public final class VSICLIFNeuron extends Object implements Neuron
Modifier and Type | Class and Description |
---|---|
class |
VSICLIFNeuron.State |
Modifier and Type | Field and Description |
---|---|
double |
clamp_t
clamp the threshold during absolute refractory period
|
double |
clamp_v
clamp the membrane voltage during absolute refractory period
|
static double |
cost |
static double |
cost_Schedule |
static double |
cost_Update |
boolean |
fire
judge whether the neuron fires or not
|
double |
lastInputTime
last time the neuron received a spike
|
static double |
maxWeight |
static double |
MINRISETIME
minimum rising time for neuron to fire
|
VSICLIFNeuronPara |
para |
static double |
rEPS
the criteria for removing synapses
|
VSICLIFNeuron.State[] |
sta_p
pointer to the state variables
|
TreeSet<VSICLIFNeuron.State> |
state
linked list for state variables
|
double |
tAvg
average time interval a neuron received spikes
|
static double |
tEPS
time accuracy
|
long |
tHost |
Constructor and Description |
---|
VSICLIFNeuron(VSICLIFNeuronPara para) |
Modifier and Type | Method and Description |
---|---|
double[] |
getCurr()
get the current which is the last updated current
|
double[] |
getCurr(double currTime) |
double |
getCurr(int a,
double[] curr) |
double |
getMemV(double currTime) |
double |
getNB(double instantaneousThreshold,
double memV,
double[] curr)
return nb term
|
double |
getNG(double memV,
double[] curr)
return ng term ( membrane voltage - ABGLCAP * membranevoltageNg )
|
boolean |
getRecord()
record the neuron
|
double |
getSensoryWeight() |
long |
getTHost() |
double |
getTimeOfLastUpdate() |
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
|
double |
memStheta(double t) |
double |
memVoltage(double t)
absolute time t
|
boolean |
realFire() |
double |
safeD(double t)
absolute time t
|
void |
setMemV(double memV) |
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 |
setTimeOfLastUpdate(double timeOfLastUpdate) |
void |
setTimeOfNextFire(double timeOfNextFire)
set a new value to timeOfNextFire
|
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 static double MINRISETIME
public static double tEPS
public static double rEPS
public static double maxWeight
public static double cost_Update
public static double cost_Schedule
public static double cost
public double tAvg
public double lastInputTime
public double clamp_v
public double clamp_t
public boolean fire
public long tHost
public VSICLIFNeuronPara para
public TreeSet<VSICLIFNeuron.State> state
public VSICLIFNeuron.State[] sta_p
public VSICLIFNeuron(VSICLIFNeuronPara 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 timeOfNextFire)
Neuron
setTimeOfNextFire
in interface Neuron
timeOfNextFire
- the new value to be usedpublic void init(int expid, int trialid, Seed idum, Network net, int id)
Neuron
public double updateFire()
Neuron
updateFire
in interface Neuron
public double updateInput(double time, Synapse input)
Neuron
updateInput
in interface Neuron
input
- it is a InputEvent event in the input queuepublic double[] getCurr()
public double getCurr(int a, double[] curr)
public double getNB(double instantaneousThreshold, double memV, double[] curr)
public double getNG(double memV, double[] curr)
public double getSensoryWeight()
public double getTimeOfLastUpdate()
public void setMemV(double memV)
public void setTimeOfLastUpdate(double timeOfLastUpdate)
public double memStheta(double t)
public double memVoltage(double t)
public double safeD(double t)