-
Notifications
You must be signed in to change notification settings - Fork 1
/
Window.h
40 lines (35 loc) · 841 Bytes
/
Window.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef WINDOW_H
#define WINDOW_H
#include <cmath>
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include "bessel.h"
#include "miscmaths/miscmaths.h"
#include <fstream>
#include <iterator>
#include <algorithm>
class window {
int PassZero;
const float PI;
float cutoff;
float SamplingRate;
float Nyq;
int N;
float beta;
std::vector<float> FIR;
float StopGain;
double TranWidth;
float TR;
public:
window();
window(float co, float sr, float sg, double tw, int pz, float TR);
void kaiserord (float,float);
float kaiser_atten (int,float);
void kaiser_beta (float);
void get_window(std::vector<float>, int);
void print_info();
std::vector<float> get_fir();
};
#endif /* WINDOW_H */