Implements a signal consisting of two cosine, i.e. alpha*cos(2*pi*f1*t)
More...
#include <TwoCosineSignal.h>
|
const TimeFrame & | time_frame |
| reference to time frame
|
|
std::vector< double > | signal_values |
| array containing the signal values
|
|
Implements a signal consisting of two cosine, i.e. alpha*cos(2*pi*f1*t)
- beta*cos(2*pi*f2*t + phi)
◆ TwoCosineSignal() [1/2]
Spike::TwoCosineSignal::TwoCosineSignal |
( |
double | alpha, |
|
|
double | f1, |
|
|
double | beta, |
|
|
double | f2, |
|
|
double | phi, |
|
|
const TimeFrame & | time_frame ) |
Construct TwoCosineSignal from parameters.
- Parameters
-
alpha | Amplitude first signal |
f1 | Frequency first signal |
beta | amplitude second signal |
f2 | Frequency second signal |
phi | Phase shift |
time_frame | TimeFrame |
◆ TwoCosineSignal() [2/2]
Spike::TwoCosineSignal::TwoCosineSignal |
( |
const std::string & | input_file, |
|
|
const TimeFrame & | time_frame ) |
Construct TwoCosineSignal from input file.
- Parameters
-
input_file | Input file in .ini format |
time_frame | time frame |
◆ print()
void Spike::TwoCosineSignal::print |
( |
std::ostream & | out | ) |
const |
|
inlineoverridevirtual |
Prints the signal to out stream.
- Parameters
-
Implements Spike::Signal.
◆ signal()
double Spike::TwoCosineSignal::signal |
( |
double | t | ) |
const |
Returns signal, i.e. alpha*cos(2*pi*f1*t) + beta*cos(2*pi*f2*t + phi)
- Parameters
-
- Returns
- Signal, i.e. alpha*cos(2*pi*f1*t) + beta*cos(2*pi*f2*t + phi)
The documentation for this class was generated from the following files:
- /github/workspace/Spike/Signal/TwoCosineSignal.h
- /github/workspace/Spike/Signal/TwoCosineSignal.cpp