-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBSFilter1.h
More file actions
23 lines (20 loc) · 946 Bytes
/
BSFilter1.h
File metadata and controls
23 lines (20 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "SFilter.h"
#include "WindowFunctions.h"
/*
This is a BAND-STOP WINDOWED-SINC FILTER, it is a high performance
filter regarding the frequency band separatation , it is not recommended for
time domain analysis.
*/
class CBSFilter1 : public CSFilter
{
private: //Attributes
int m_nStopBandFreq; //the first frequency corner, below this level frequencies pass and
//above this level the frequencies are cut
int m_nPassBandFreq; //the first frequency corner, under this level the frequencies are cut
//and the higher frequencies pass
public: //Member functions
CBSFilter1 ( const int KernelLen, const int SamplingRate, const int StopBandFreq, const int PassBandFreq, CWindowFunction* Window );
double *CreateKern ( const int KernelLen, const int SamplingRate, const int StopBandFreq, const int PassBandFreq, CWindowFunction* Window );
~CBSFilter1 ();
};