|
Spike
|
Implement a step get_value, i.e. alpha*Theta(t - t_0) More...
#include <StepSignal.h>
Public Member Functions | |
| StepSignal (double alpha, double t_0, const TimeFrame &time_frame) | |
| Construct StepSignal from parameters. | |
| StepSignal (const std::string &input_file, const TimeFrame &time_frame) | |
| Construct StepSignal from input file. | |
| void | calculate_signal () |
| Calculates the step get_value. | |
| double | signal (double t) const |
| Returns get_value, i.e. alpha*Theta(t - t_0) | |
| void | print (std::ostream &out) const override |
| Prints the signal to out stream. | |
Public Member Functions inherited from Spike::Signal | |
| Signal (const TimeFrame &time_frame) | |
| Constructs signal from given time frame. | |
| double | get_value (size_t i) const |
| Returns the signal value at index i. | |
Additional Inherited Members | |
Protected Attributes inherited from Spike::Signal | |
| const TimeFrame & | time_frame |
| reference to time frame | |
| std::vector< double > | signal_values |
| array containing the signal values | |
Implement a step get_value, i.e. alpha*Theta(t - t_0)
| Spike::StepSignal::StepSignal | ( | double | alpha, |
| double | t_0, | ||
| const TimeFrame & | time_frame ) |
Construct StepSignal from parameters.
| alpha | Amplitude |
| t_0 | Start time |
| time_frame | TimeFrame |
| Spike::StepSignal::StepSignal | ( | const std::string & | input_file, |
| const TimeFrame & | time_frame ) |
Construct StepSignal from input file.
| input_file | Input file in .ini format |
| time_frame | TimeFrame |
|
inlineoverridevirtual |
| double Spike::StepSignal::signal | ( | double | t | ) | const |
Returns get_value, i.e. alpha*Theta(t - t_0)
| t | Time |