Ignore:
Timestamp:
Aug 12, 2005, 5:39:24 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Moved regression stuff into a namespace ...statistics::regression.
Filenames was changed and a first draft of a Polynomial regression is
implemented (compiles but does not run properly).

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/lib/statistics/Linear.h

    r380 r383  
    44#define _theplu_statistics_regression_linear_
    55
    6 #include <c++_tools/statistics/Regression.h>
     6#include <c++_tools/statistics/OneDimensional.h>
    77#include <c++_tools/gslapi/vector.h>
    88
     
    1111namespace theplu {
    1212namespace statistics { 
    13  
     13namespace regression {
     14
    1415  ///
    15   /// Class for Regression.   
     16  /// Class for OneDimensional.   
    1617  ///
    1718 
    18   class RegressionLinear : public Regression
     19  class Linear : public OneDimensional
    1920  {
    2021 
     
    2324    /// Default Constructor.
    2425    ///
    25     RegressionLinear(void);
     26    inline Linear(void)
     27      : OneDimensional(), alpha_(0), alpha_var_(0), beta_(0), beta_var_(0),
     28        m_x_(0), s2_(0) {}
    2629
    2730    ///
    2831    /// Copy Constructor. (not implemented)
    2932    ///
    30     RegressionLinear(const RegressionLinear&);
     33    Linear(const Linear&);
    3134
    3235    ///
    3336    /// Destructor
    3437    ///
    35     virtual ~RegressionLinear(void) {};
     38    virtual ~Linear(void) {};
    3639         
    3740    ///
     
    116119  };
    117120
    118 }} // of namespace statistics and namespace theplu
     121}}} // of namespaces regression, statisitcs and thep
    119122
    120123#endif
    121 
Note: See TracChangeset for help on using the changeset viewer.