RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
anlg_rcn.h
Go to the documentation of this file.
1 //
2 // File = anlg_rcn.h
3 //
4 
5 #ifndef _ANLG_RCN_H_
6 #define _ANLG_RCN_H_
7 
8 #include "typedefs.h"
9 #include <fstream>
10 
12 {
13 public:
14  //---------------------
15  // default constructor
16 
17  AnalogReconst(double samp_intvl, int anlg_intrp_rate,
18  int num_signif_sidelobes, int num_analog_samps);
19 
20  ~AnalogReconst(void);
21 
22  void AddSample(double new_samp);
23 
24  void DumpResult(std::ofstream* out_file);
25 
26  void CopyResult(double* output_array);
27 
28  double FindPeak(void);
29 
30  double FindPeakMag(void);
31 
32  double CosineCorrelate(double norm_freq, double phase_offset,
33  double cycles_per_correl);
34 
35 private:
36  double Delta_Arg;
37  double* Analog_Signal;
38  int Curr_Samp;
43 };
44 
45 #endif
void AddSample(double new_samp)
Definition: anlg_rcn.cpp:44
void CopyResult(double *output_array)
Definition: anlg_rcn.cpp:79
void DumpResult(std::ofstream *out_file)
Definition: anlg_rcn.cpp:65
double FindPeakMag(void)
Definition: anlg_rcn.cpp:109
~AnalogReconst(void)
Definition: anlg_rcn.cpp:37
int Analog_Interp_Rate
Definition: anlg_rcn.h:41
double Interp_Samp_Intvl
Definition: anlg_rcn.h:42
double FindPeak(void)
Definition: anlg_rcn.cpp:94
double Delta_Arg
Definition: anlg_rcn.h:36
double CosineCorrelate(double norm_freq, double phase_offset, double cycles_per_correl)
Definition: anlg_rcn.cpp:123
int Max_Offset
Definition: anlg_rcn.h:40
double * Analog_Signal
Definition: anlg_rcn.h:37
int Curr_Samp
Definition: anlg_rcn.h:38
AnalogReconst(double samp_intvl, int anlg_intrp_rate, int num_signif_sidelobes, int num_analog_samps)
Definition: anlg_rcn.cpp:18
int Num_Analog_Samps
Definition: anlg_rcn.h:39