public class Spike extends Function
This function is the default function that is used to describe the form of the spikes
generated by a SpikingNeuron in a SpikingNeuralNet. The Spike
function is the default activation function for a SpikingNeuron.
By default a Spike describes the form of spikes of biological neurons
and includes absolute and relative refractoriness phase.
Function.AboutEqual, Function.AtLeast, Function.AtMost, Function.CatmullRomSpline, Function.Clip, Function.Composition, Function.Exponential, Function.GreaterThan, Function.Identity, Function.LessThan, Function.NaturalSpline, Function.NotImplemented, Function.ReLU, Function.Scaled, Function.Sigmoid, Function.Signum, Function.SignumWithoutZero, Function.Sinus, Function.SoftMax, Function.Spline, Function.TanH| Constructor and Description |
|---|
Spike()
Create a new
Spike, with defaults for the parameters. |
Spike(double abs,
double absDur,
double rel,
double relDur)
Create a new
Spike, with the specified parameter values. |
| Modifier and Type | Method and Description |
|---|---|
Spike |
clone()
Return a deep copy of this object.
|
boolean |
equals(java.lang.Object other) |
void |
fromXML(org.jdom2.Element element)
Reads attributes from XML tree.
|
double |
getAbsDur()
Returns the absolute refractory period.
|
double |
getMaxValue()
Return the duration of the absolute refractoriness phase.
|
double |
getMinValue()
Return the smallest possible function value.
|
double |
getRelDur()
Returns the relative refractory period.
|
double |
map(double s)
Map a value through the function.
|
double |
mapDerivative(double s)
Map a value through the first derivative of this function.
|
void |
setAbsDur(double absDur)
Sets the absolute refractory period.
|
void |
setRelDur(double relDur)
Sets the relative refractory period.
|
org.jdom2.Element |
toXML(org.jdom2.Element element)
Writes specific attributes to XML tree.
|
create, mapSecondDerivative, setParameterspublic Spike()
Spike, with defaults for the parameters.
The defaults generate a function that describes the form of spikes of biological neurons.public Spike(double abs,
double absDur,
double rel,
double relDur)
Spike, with the specified parameter values.abs - the maximum value the neuron potential is above its
resting potential during the absolute refractoriness phaseabsDur - the duration of the absolute refractoriness phase in millisecondsrel - the maximum value the neuron potential is below its
resting potential during the relative refractoriness phaserelDur - factor that defines the duration of the relative refractoriness phasepublic double getAbsDur()
public void setAbsDur(double absDur)
absDur - the period [ms]public double getRelDur()
public void setRelDur(double relDur)
relDur - the period [ms]public double map(double s)
Functionpublic double mapDerivative(double s)
FunctionmapDerivative in class Functionpublic double getMinValue()
FunctiongetMinValue in class Functionpublic double getMaxValue()
getMaxValue in class Functionpublic void fromXML(org.jdom2.Element element)
Storablepublic org.jdom2.Element toXML(org.jdom2.Element element)
public Spike clone()
Functionpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object