public class PostsynapticPotential extends Function
This function models the effect of a spike generated by a SpikingNeuron to the overall potential of
a the SpikingNeuron that receives the spike. Both neurons are connected by a SpikingLink.
The PostsynapticPotential function is the default activation function for a SpikingLink.
This enables a SpikingLink to model a biolgical synapse. By default a PostsynapticPotential
models an excitatory effect.
PostsynapticPotential(t) := alpha * (e**-(lambda*t) - e**-(mu*t))
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 |
|---|
PostsynapticPotential()
Create a new
PostsynapticPotential, with defaults for the parameters. |
PostsynapticPotential(double alpha,
double lambda,
double mu)
Create a new
PostsynapticPotential with the specified parameter values. |
| Modifier and Type | Method and Description |
|---|---|
PostsynapticPotential |
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 |
getMaxValue()
Return the largest possible function value.
|
double |
getMinValue()
Return the smallest possible function value.
|
double |
map(double t)
Map a value through the function.
|
double |
mapDerivative(double t)
Map a value through the first derivative of this function.
|
org.jdom2.Element |
toXML(org.jdom2.Element element)
Writes specific attributes to XML tree.
|
create, mapSecondDerivative, setParameterspublic PostsynapticPotential()
PostsynapticPotential, with defaults for the parameters.
The defaults generate a function that models an excitatory effect for the neuron potential.public PostsynapticPotential(double alpha,
double lambda,
double mu)
PostsynapticPotential with the specified parameter values. Set lambda < mu to model
an excitatory effect for the neuron potential, or lambda > mu for an inhibitory effect.alpha - Scales the ascending and descending slope, and the maximum, if lambda < mu, or the minimum, if lambda > mu.lambda - Set lambda < mu to model an excitatory effect for the neuron potential, or lambda > mu for an inhibitory effect.mu - Set lambda < mu to model an excitatory effect for the neuron potential, or lambda > mu for an inhibitory effect.public double map(double t)
Functionpublic double mapDerivative(double t)
FunctionmapDerivative in class Functionpublic double getMinValue()
FunctiongetMinValue in class Functionpublic double getMaxValue()
FunctiongetMaxValue in class Functionpublic void fromXML(org.jdom2.Element element)
Storablepublic org.jdom2.Element toXML(org.jdom2.Element element)
public PostsynapticPotential clone()
Functionpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object