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
SourceForge Logo

Generated on Sat Jul 6 2013 10:54:23 for IT++ by Doxygen 1.8.2