RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sinawgn.h
Go to the documentation of this file.
1 //
2 // File = sinawgn.h
3 //
4 
5 #ifndef _SINAWGN_H_
6 #define _SINAWGN_H_
7 
8 #include "complex.h"
9 #include "sig_src.h"
10 
11 class SinesInAwgn : public SignalSource
12 {
13 public:
14  SinesInAwgn(double sampling_interval, std::istream& uin, std::ostream& uout);
15 
16  SinesInAwgn(double sampling_interval, int num_sines, double* freq,
17  double* phase, double* ampl, double agn_sigma, long agn_seed);
18 
19  void ResetSource(void);
20 
21  ~SinesInAwgn();
22 
23  // float_complex* GetNextSegment(void);
24  void GetNextSegment(complex* time_seq, int num_samps);
25 
26 private:
27  double Samp_Intvl;
28  int Num_Sines;
29  double* Freq;
30  double* Phase;
31  double* Ampl;
32  double Agn_Sigma;
33  long Agn_Seed;
36 };
37 #endif // _SINAWGN_H_
void ResetSource(void)
Definition: sinawgn.cpp:75
long Orig_Agn_Seed
Definition: sinawgn.h:34
void GetNextSegment(complex *time_seq, int num_samps)
Definition: sinawgn.cpp:97
int Num_Sines
Definition: sinawgn.h:28
~SinesInAwgn()
Definition: sinawgn.cpp:87
double Agn_Sigma
Definition: sinawgn.h:32
double Samp_Intvl
Definition: sinawgn.h:27
double * Phase
Definition: sinawgn.h:30
long Agn_Seed
Definition: sinawgn.h:33
double * Ampl
Definition: sinawgn.h:31
int Seg_Offset
Definition: sinawgn.h:35
double * Freq
Definition: sinawgn.h:29
SinesInAwgn(double sampling_interval, std::istream &uin, std::ostream &uout)