-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKernel.h
More file actions
26 lines (19 loc) · 730 Bytes
/
Kernel.h
File metadata and controls
26 lines (19 loc) · 730 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
26
#ifndef KernelH
#define KernelH
#define _ERROR_ 0
#define _WARNING_ 3
#define _NOTICE_ 6
#define _DEBUG_ 7
#include <math.h>
//#include "dft.h"
//#include "measuring_transformer.h"
//#include "Matrix.h" //èñïîëüçóåì cpp, ò.ê. â ìîëóëå èñï. template`s
#include "model.h"
#define sampl_freq 500 //÷àñòîòà äèñêðåòèçàöèè
#define FREQ 50 //÷àñòîòà îñíîâíîé ãàðìîíèêè
double T = 1.0/sampl_freq; //âðåìÿ ìåæäó âûáîðêàìè
const unsigned N = 1.0*sampl_freq/FREQ; //÷èñëî âûáîðîê íà ïåðèîä îñíîâíîé ÷àñòîòû
const double w = 2*M_PI*FREQ; //êðóãîâàÿ ÷àñòîòà 1 ãàðìîíèêè
double smp = 1e-5; // sample - øàã ïî âðåìåíè äëÿ ðàñ÷åòà ìîäåëè
double TIME=0; //òåêóùåå âðåìÿ
#endif