mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 05:41:56 -05:00
Use namepsace instead empty class
This commit is contained in:
parent
fff4b7e465
commit
eeb243ea7e
@ -270,6 +270,7 @@ set(sdrbase_HEADERS
|
||||
dsp/inthalfbandfiltersti.h
|
||||
dsp/kissfft.h
|
||||
dsp/kissengine.h
|
||||
dsp/firfilter.h
|
||||
dsp/mimochannel.h
|
||||
dsp/misc.h
|
||||
dsp/movingaverage.h
|
||||
|
@ -18,7 +18,10 @@
|
||||
|
||||
#include "firfilter.h"
|
||||
|
||||
void FirFilterGenerators::generateLowPassFilter(int nTaps, double sampleRate, double cutoff, std::vector<Real> &taps)
|
||||
namespace FirFilterGenerators
|
||||
{
|
||||
|
||||
void generateLowPassFilter(int nTaps, double sampleRate, double cutoff, std::vector<Real> &taps)
|
||||
{
|
||||
if (!(nTaps & 1))
|
||||
{
|
||||
@ -50,3 +53,5 @@ void FirFilterGenerators::generateLowPassFilter(int nTaps, double sampleRate, do
|
||||
taps[i] *= 0.42 + 0.5 * cos((2.0 * M_PI * n) / nTaps) + 0.08 * cos((4.0 * M_PI * n) / nTaps);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -23,10 +23,9 @@
|
||||
#include "dsp/dsptypes.h"
|
||||
#include "export.h"
|
||||
|
||||
class SDRBASE_API FirFilterGenerators
|
||||
namespace FirFilterGenerators
|
||||
{
|
||||
public:
|
||||
static void generateLowPassFilter(int nTaps, double sampleRate, double cutoff, std::vector<Real> &taps);
|
||||
SDRBASE_API void generateLowPassFilter(int nTaps, double sampleRate, double cutoff, std::vector<Real> &taps);
|
||||
};
|
||||
|
||||
template <class Type>
|
||||
|
Loading…
Reference in New Issue
Block a user