|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectthetaNeuron.lib.ThetaNeuron
public class ThetaNeuron
Nested Class Summary | |
---|---|
static class |
ThetaNeuron.Method
Simulation Method Enum. |
Constructor Summary | |
---|---|
ThetaNeuron()
Theta Neuron Constructor. |
|
ThetaNeuron(int new_num_inputs)
Theta Neuron Constructor. |
|
ThetaNeuron(int new_num_inputs,
double weight_ini)
Theta Neuron Constructor. |
|
ThetaNeuron(int new_num_inputs,
double weight_ini,
double new_io)
Theta Neuron Constructor. |
Method Summary | |
---|---|
double |
getIo()
Public Method to Get the Baseline Current, Io |
ThetaNeuron.Method |
getMethod()
Public Method to Get the Neuron Simulation Method |
double |
getPhase()
Public Method to Get the Neuron Phase (State) |
double |
getWeight(int index)
Public Method to Get the Weight at input neuron index |
java.util.ArrayList |
runThetaNeuron(double[] ti)
Public Method to Return Output Spike Times, ts, of a maximum length MAX_NUM_OUTPUT_SPIKES, with input spike times in array ti |
java.util.ArrayList |
runThetaNeuron(double[] ti,
int max_num_ts)
Public Method to Return Output Spike Times, ts, of a maximum length max_num_ts, with input spike times in array ti |
void |
setIo(double new_io)
Public Method to Set the Baseline Current, Io |
void |
setMethod(ThetaNeuron.Method new_method)
Public Method to Set the Neuron Simulation Method |
void |
setVerbose(boolean new_verbose)
Public Method to Set the Verbosity of the Theta Neuron Simulation |
void |
setWeight(double new_weight,
int index)
Public Method to Set the Weight at input neuron index to new_weight |
java.lang.String |
toString()
Public Method to Convert Theta Neuron into a Property String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ThetaNeuron(int new_num_inputs, double weight_ini, double new_io)
new_num_inputs
- The number of input neurons desired.weight_ini
- The value to initialize all weights to.new_io
- The baseline current.public ThetaNeuron(int new_num_inputs, double weight_ini)
new_num_inputs
- The number of input neurons desired.weight_ini
- The value to initialize all weights to.public ThetaNeuron(int new_num_inputs)
new_num_inputs
- The number of input neurons desired.public ThetaNeuron()
Method Detail |
---|
public double getPhase()
getPhase
in interface ThetaInterface
ThetaNeuron()
public ThetaNeuron.Method getMethod()
getMethod
in interface ThetaInterface
ThetaNeuron()
public void setMethod(ThetaNeuron.Method new_method)
setMethod
in interface ThetaInterface
new_method
- An enumerator of type Method representing the new simulation methodThetaNeuron()
public void setVerbose(boolean new_verbose)
setVerbose
in interface ThetaInterface
new_verbose
- A boolean flag representing whether verbose comments should be printed to the console window during simulationThetaNeuron()
public double getWeight(int index)
getWeight
in interface ThetaInterface
index
- Index into the neuron's inputs from which to get the weight value; must not be greater than the number of inputs or -1 will be returned
ThetaNeuron()
public void setWeight(double new_weight, int index)
setWeight
in interface ThetaInterface
new_weight
- New weight valueindex
- Index into neuron's inputs at which to set the new weight; must not be greater than the number of inputs or weight will not be setThetaNeuron()
public double getIo()
getIo
in interface ThetaInterface
ThetaNeuron()
public void setIo(double new_io)
setIo
in interface ThetaInterface
new_io
- New baseline current value, must be negative or baseline current will not be setThetaNeuron()
public java.lang.String toString()
toString
in interface ThetaInterface
toString
in class java.lang.Object
ThetaNeuron()
public java.util.ArrayList runThetaNeuron(double[] ti)
runThetaNeuron
in interface ThetaInterface
ti
- an array of input spike times.
ThetaNeuron()
public java.util.ArrayList runThetaNeuron(double[] ti, int max_num_ts)
runThetaNeuron
in interface ThetaInterface
ti
- an array of input spike times.max_num_ts
- the maximum number of output spikes that will be returned.
ThetaNeuron()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |