public class SIFNeuron extends Object implements Neuron, Serializable
Modifier and Type | Field and Description |
---|---|
static double[] |
currMax
For table max boundary
|
static double[] |
currMin
For table min boundary
|
static double |
currStep
For table step size
|
static double |
maxWeight |
static double |
memMax
For table max boundary
|
static double |
memMin
For table min boundary
|
static double |
memStep
For table step size
|
static int |
TABLESIZE_c
For table size
|
static int |
TABLESIZE_o
For table size
|
long |
tHost
long imposes a constraint on the maximum number of hosts to be 64
|
Constructor and Description |
---|
SIFNeuron(SIFNeuronPara para) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesFire() |
double[] |
getCurr(double currTime) |
double |
getMemV(double currTime) |
boolean |
getRecord()
record the neuron
|
double |
getSensoryWeight()
It looks this was originally a method in the Neuron interface which
has since been removed.
|
long |
getTHost() |
double |
getTimeOfLastUpdate()
get the value of timeOfLastUpdate
|
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 |
setMemV(double memV)
set a new value to 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)
set a new value to timeOfLastUpdate
|
void |
setTimeOfNextFire(double timeOfNextFire)
set a new value to timeOfNextFire
|
double |
timeOfFire(double currTime) |
String |
toString() |
double |
updateFire()
update of the neuron after firing
the current time is TimeOfNextFire
|
double |
updateInput(double time,
Synapse inputSynapse)
update of the neuron after receiving a spike
the current time is time
|
public static double maxWeight
public static int TABLESIZE_o
public static int TABLESIZE_c
public static double memMin
public static double memMax
public static double[] currMin
public static double[] currMax
public static double memStep
public static double currStep
public long tHost
public SIFNeuron(SIFNeuronPara para)
public double[] getCurr(double currTime)
public double getMemV(double currTime)
public long getTHost()
public double getTimeOfNextFire()
getTimeOfNextFire
in interface Neuron
public boolean realFire()
public double getSensoryWeight()
public double getTimeOfLastUpdate()
public void setMemV(double memV)
memV
- the new value to be usedpublic void setRecord(boolean record)
public void setTHost(long id)
public void setTimeOfNextFire(double timeOfNextFire)
setTimeOfNextFire
in interface Neuron
timeOfNextFire
- the new value to be usedpublic void setTimeOfLastUpdate(double timeOfLastUpdate)
timeOfLastUpdate
- 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 inputSynapse)
Neuron
updateInput
in interface Neuron
inputSynapse
- it is a InputEvent event in the input queuepublic boolean doesFire()
public double timeOfFire(double currTime)