Implements a cosine signal, i.e. alpha*cos(2*pi*f*t)
More...
#include <CosineSignal.h>
|
const TimeFrame & | time_frame |
| reference to time frame
|
|
std::vector< double > | signal_values |
| array containing the signal values
|
|
Implements a cosine signal, i.e. alpha*cos(2*pi*f*t)
◆ CosineSignal() [1/2]
Spike::CosineSignal::CosineSignal |
( |
double | alpha, |
|
|
double | f, |
|
|
const TimeFrame & | time_frame ) |
◆ CosineSignal() [2/2]
Spike::CosineSignal::CosineSignal |
( |
const std::string & | input_file, |
|
|
const TimeFrame & | time_frame ) |
◆ get_f()
double Spike::CosineSignal::get_f |
( |
| ) |
const |
|
inline |
Returns the frequency.
- Returns
- frequency
◆ print()
void Spike::CosineSignal::print |
( |
std::ostream & | out | ) |
const |
|
inlineoverridevirtual |
Prints cosine signal to out stream.
- Parameters
-
Implements Spike::Signal.
◆ signal()
double Spike::CosineSignal::signal |
( |
double | t | ) |
const |
Returns signal at time t, i.e. alpha*cos(2*pi*f*t)
- Parameters
-
- Returns
- Signal value at t, i.e. alpha*cos(2*pi*f*t)
The documentation for this class was generated from the following files:
- /github/workspace/Spike/Signal/CosineSignal.h
- /github/workspace/Spike/Signal/CosineSignal.cpp