CSIM: linear_regression.h Source File

linear_regression.h

Go to the documentation of this file.
00001 
00005 #ifndef _LINEAR_REGRESSION_H_
00006 #define _LINEAR_REGRESSION_H_
00007 
00008 #include "algorithm.h"
00009 
00010 using namespace std;
00011 
00013 class linear_regression : public Algorithm {
00014 
00015   DO_REGISTERING
00016 
00017  public:
00020   linear_regression(unsigned int in_rows = 1);
00021   
00022   ~linear_regression(void);
00023 
00028   int apply(const double* S, double* X);
00029 
00031   void reset();
00032 
00037   int importRepresentation(const double* rep, int rep_length);
00038 
00043   double* exportRepresentation(int *rep_length);
00044 
00046   string getFormatDescription();
00047 
00048  private:
00049 
00051   double *regression_coefficients;
00052 };
00053 
00054 #endif

 
(C) 2003, Thomas Natschläger last modified 07/10/2006