Cypress
1.0
C++ Spiking Neural Network Simulation Framework
|
#include <delta_sigma.hpp>
Public Member Functions | |
Real | alpha () const |
Real | sigma () const |
Real | step () const |
Real | integral () const |
Real | integral_to_zero () const |
Real | limit (Real eps=DEFAULT_EPS) const |
size_t | size () const |
Real | operator[] (size_t i) const |
auto | begin () const |
auto | end () const |
Static Public Member Functions | |
template<typename Window > | |
static DiscreteWindow | create_manual (Real alpha, Real sigma, Real step=DEFAULT_STEP, Real eps=DEFAULT_EPS) |
template<typename Window > | |
static DiscreteWindow | create (Real min_spike_interval=DEFAULT_MIN_SPIKE_INTERVAL, Real response_time=DEFAULT_RESPONSE_TIME, Real step=DEFAULT_STEP, Real eps=DEFAULT_EPS) |
Class representing a discretised window function.
|
inline |
Returns the used scaling factor.
|
inline |
Returns a constant iterator allowing to access the first sample.
|
static |
Creates a DiscreteWindow with automatically chosen parameters matching
min_spike_interval | is the minimum interval in which two spikes may occur. This parameter controls the scaling of the window function values. |
response_time | controls the minimum response time that can be encoded using the spike-train representation at the cost of the value resolution. |
step | is the discretisation time step. |
eps | controls the minimum value that should be stored in the discretised window. |
|
static |
Constructor of the DiscreteWindow class. Discretises the window given as template parameter.
alpha | is a scale factor the samples are scaled by. |
sigma | is the standard deviation determining the x-axis scale. |
step | is the sampling interval. |
eps | is the epsilon determining up to which value the window is sampled. |
|
inline |
Returns an iterator pointing at the last-plus-one sample.
|
inline |
Returns the integral of the window function from minus infinity to plus infinity. Multiply the result with the standard deviation to get values for standard-deviations other than one.
|
inline |
Returns the integral of the window function from minus infinity to zero.
|
inline |
Returns the number of samples until the value of the window function reaches "epsilon". Multiply the result with the standard deviation to get values for standard-deviations other than one.
|
inline |
Returns the value of the i-th sample.
|
inline |
Returns the used standard deviation/width of the window.
|
inline |
Returns the number of samples stored in the window.
|
inline |
Returns the sample interval.