Showing
1 changed file
with
5 additions
and
3 deletions
1 | #ifndef __CHANNEL | 1 | #ifndef __CHANNEL |
2 | - | ||
3 | #define __CHANNEL | 2 | #define __CHANNEL |
4 | #include <cmath> | 3 | #include <cmath> |
5 | #include <random> | 4 | #include <random> |
6 | #include "variables.h" | 5 | #include "variables.h" |
7 | -class Cchannel { | 6 | + |
7 | +class Cchannel | ||
8 | +{ | ||
8 | public: | 9 | public: |
9 | Cchannel() {}; | 10 | Cchannel() {}; |
10 | float *s; // trasmitted signal | 11 | float *s; // trasmitted signal |
11 | - float r[Nbits / Nbitspersymbol*Nsamplespersymbol]; // corrupted signal | 12 | + float r[Nbits / Nbitspersymbol * Nsamplespersymbol]; // corrupted signal |
13 | + float n[Nbits / Nbitspersymbol * Nsamplespersymbol]; | ||
12 | void AWGN(); | 14 | void AWGN(); |
13 | }; | 15 | }; |
14 | #endif | 16 | #endif |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment