1 #ifndef _FREQUENCYSHIFTER_H_ 2 #define _FREQUENCYSHIFTER_H_ 6 #include "detectortypes.h" 47 void shift(
const parameter_t fShift,
48 inputSample_t* shiftedSignal,
49 const std::size_t shiftedSignalSize);
const std::size_t inputSignalSize
input signal size
std::complex< inputSample_t > * analyticSignal
Complex array to store results of Hilbert transform.
Shift a signal by a given frequency.
void shift(const parameter_t fShift, inputSample_t *shiftedSignal, const std::size_t shiftedSignalSize)
Shift the input signal by the stated amount and fill shiftedSignal.
FrequencyShifter(const inputSample_t *inputSignal, const std::size_t inputSignalSize, const double sr, HilbertMode mode=HilbertMode::fir)
Construct a FrequencyShifter, which uses either an FIR or FFT.
const inputSample_t * inputSignal
input signal
const parameter_t sr
Sample rate.