RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ar_proc.h
Go to the documentation of this file.
1 //
2 // File = ar_proc.h
3 //
4 
5 #ifndef _AR_PROC_H_
6 #define _AR_PROC_H_
7 
8 #include "complex.h"
9 
10 template <class T>
11 class ArProcess
12 {
13 public:
14  ArProcess(void);
15 
16  ~ArProcess(void);
17 
18  void DumpParameters(std::ostream& uout);
19 
20  void GetParameters(int* ar_order, T* a_coeff);
21 
22  T* OutputSequence(long noise_seed, int seq_len);
23  T NextSample(long noise_seed_init);
24  T NextSample(void);
25  T GetVariance(void);
26  T GetMean(void);
27  double GetDrivingVariance(void);
28 
29 protected:
30  int Ar_Order;
33  long Noise_Seed;
34  double Drv_Noise_Var;
39  int Num_Samps;
40 };
41 
42 #endif
double Drv_Noise_Var
Definition: ar_proc.h:34
T Sum_Wgn_Sqrs
Definition: ar_proc.h:36
void GetParameters(int *ar_order, T *a_coeff)
Definition: ar_proc.cpp:60
T Sum_Samps
Definition: ar_proc.h:37
long Noise_Seed
Definition: ar_proc.h:33
void DumpParameters(std::ostream &uout)
Definition: ar_proc.cpp:46
T Sum_Wgn_Samps
Definition: ar_proc.h:35
T GetVariance(void)
Definition: ar_proc.cpp:144
double GetDrivingVariance(void)
Definition: ar_proc.cpp:137
T * A_Coeffs
Definition: ar_proc.h:31
int Num_Samps
Definition: ar_proc.h:39
T * Old_Output
Definition: ar_proc.h:32
int Ar_Order
Definition: ar_proc.h:30
~ArProcess(void)
Definition: ar_proc.cpp:35
T NextSample(void)
Definition: ar_proc.cpp:159
T * OutputSequence(long noise_seed, int seq_len)
Definition: ar_proc.cpp:77
ArProcess(void)
Definition: ar_proc.cpp:21
T Sum_Squares
Definition: ar_proc.h:38
T GetMean(void)
Definition: ar_proc.cpp:130