IT++ Logo
ofdm.h
Go to the documentation of this file.
1 
30 #ifndef OFDM_H
31 #define OFDM_H
32 
33 #include <itpp/base/vec.h>
34 #include <itpp/itexports.h>
35 
36 
37 namespace itpp
38 {
39 
46 class ITPP_EXPORT OFDM
47 {
48 public:
50  OFDM(void) { setup_done = false; }
52  OFDM(int inNfft, int inNcp, int inNupsample = 1);
54  int no_carriers() {return Nfft;}
56  void set_parameters(const int Nfft, const int Ncp, const int inNupsample = 1);
58  cvec modulate(const cvec &input);
60  void modulate(const cvec &input, cvec &output);
62  cvec demodulate(const cvec &input);
64  void demodulate(const cvec &input, cvec &output);
65 private:
66  double norm_factor;
67  bool setup_done;
68  int Nfft, Ncp, Nupsample;
69 };
70 
71 } // namespace itpp
72 
73 #endif // #ifndef OFDM_H
int no_carriers()
Return the number of carriers.
Definition: ofdm.h:54
Class for modulating and demodulation of OFDM signals using the FFT.
Definition: ofdm.h:46
itpp namespace
Definition: itmex.h:36
OFDM(void)
Empty constructor.
Definition: ofdm.h:50
Templated Vector Class Definitions.
SourceForge Logo

Generated on Sun Apr 10 2022 12:00:00 for IT++ by Doxygen 1.8.14