IT++ Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
35 
36 namespace itpp
37 {
38 
45 class OFDM
46 {
47 public:
49  OFDM(void) { setup_done = false; }
51  OFDM(int inNfft, int inNcp, int inNupsample = 1);
53  int no_carriers() {return Nfft;}
55  void set_parameters(const int Nfft, const int Ncp, const int inNupsample = 1);
57  cvec modulate(const cvec &input);
59  void modulate(const cvec &input, cvec &output);
61  cvec demodulate(const cvec &input);
63  void demodulate(const cvec &input, cvec &output);
64 private:
65  double norm_factor;
66  bool setup_done;
67  int Nfft, Ncp, Nupsample;
68 };
69 
70 } // namespace itpp
71 
72 #endif // #ifndef OFDM_H
SourceForge Logo

Generated on Fri Mar 21 2014 17:14:13 for IT++ by Doxygen 1.8.1.2