Changeset 207


Ignore:
Timestamp:
Nov 2, 2004, 8:26:44 PM (19 years ago)
Author:
Peter
Message:

fixed minor bugs

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile.am

    r205 r207  
    1717  Score.cc Statistics.cc \
    1818  PolynomialKernelFunction.cc random_singleton.cc \
    19   RegressionKernel.cc RegressionLinear.cc ROC.cc Score.cc Statistics.cc \
     19  Regression.cc RegressionKernel.cc RegressionLinear.cc ROC.cc Score.cc \
     20  Statistics.cc \
    2021  SVD.cc SVM.cc tScore.cc vector.cc WeightedAverager.cc WeNNI.cc
    2122
     
    3334  Regression.h RegressionLinear.h RegressionLocal.h RegressionNaive.h \
    3435  ROC.h Score.h \
    35   PolynomialKernelFunction.h random_singleton.h \
     36  PolynomialKernelFunction.h random_singleton.h Regression.h \
    3637  RegressionKernel.h RegressionLinear.h ROC.h Score.h \
    3738  Statistics.h stl_utility.h SVD.h SVM.h tScore.h vector.h WeNNI.h \
  • trunk/src/Regression.h

    r206 r207  
    1010// Standard C++ includes
    1111////////////////////////
    12 //#include <gsl/gsl_fit.h>
     12
    1313
    1414namespace theplu {
    1515namespace statistics { 
    1616
    17   class gslapi::vector;
    1817 
    1918  ///
     
    2827    /// Default Constructor.
    2928    ///
    30     Regression(void);
     29    Regression();
    3130
    3231    ///
  • trunk/src/RegressionLinear.h

    r204 r207  
    5151                                   &cov00_, &cov01_, &cov11_, &sumsq_); } 
    5252
     53    inline double k(void) const { return k_; }
     54    inline double m(void) const { return m_; }
     55
     56
    5357    ///
    5458    /// This function computes the best-fit linear regression
     
    5862    /// \f$ y_i \f$
    5963    ///
    60     inline int fit_weighted(gslapi::vector& x,gslapi::vector& y,
    61                             gslapi::vector& w)
     64    inline int fit_weighted(const gslapi::vector& x, const gslapi::vector& y,
     65                            const gslapi::vector& w)
    6266    { return gsl_fit_wlinear_vector(x.gsl_vector_pointer(),
    6367                                    w.gsl_vector_pointer(),
Note: See TracChangeset for help on using the changeset viewer.