-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathLPFilter1.h
More file actions
25 lines (23 loc) · 719 Bytes
/
LPFilter1.h
File metadata and controls
25 lines (23 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "SFilter.h"
#include "WindowFunctions.h"
/*
This is a LOW-PASS WINDOWED-SINC FILTER, it is a high performance
filter regarding the frequency band separation , it is not recommended for
time domain analysis.
*/
class CLPFilter1 : public CSFilter
{
private: //Attributes
int m_dCutoffFreq ; //the cutoff frequency , must not be greater than half of the
//sampling frequency(Niquist frequency)
public:
CLPFilter1( const int KernelLen,
const int SamplingRate,
const int CutoffFreq,
const int FFTLen,
CWindowFunction* Window );
double* CreateKern(const int CutoffFreq, CWindowFunction* Window);
double* getKernel();
~CLPFilter1();
};