LinearPredictor.h
Go to the documentation of this file.
1 
9 #ifndef _LinearPredictor_h_
10 #define _LinearPredictor_h_
11 
12 #include <vector>
13 
14 #include <Eigen/Dense>
15 
16 #ifndef __python_test__
17 #include <fwk/VModule.h>
18 #endif
19 
20 using namespace Eigen;
21 
22 
24 
26  public:
27  LinearPredictor(unsigned int numCoeffPerChannel, unsigned int delayLine, unsigned int numChannels, unsigned int optimization = 1);
28  void train(std::vector< std::vector<double> > const &channels, double fudgeFactor);
29  std::vector< std::vector<double> > predict(std::vector< std::vector<double> > const &channels) const;
30 
31  private:
32  unsigned int numCoeffPerChannel;
33  unsigned int numChannels;
34  unsigned int delayLine;
35  //unsigned int channels; // unused. LN.
36  unsigned int dimCovMatr;
38  unsigned int totalPredictorOffset;
39  unsigned int optimization;
40 
41  MatrixXd covMatr;
43  };
44 }
45 
46 #endif
Linear Predictor. Trains on noise with RFI, predicts RFI given other noisy signal.

, generated on Tue Sep 26 2023.