Changeset 1019 for trunk/yat


Ignore:
Timestamp:
Feb 1, 2008, 6:10:34 PM (14 years ago)
Author:
Peter
Message:

passing VectorBase? in regression::OneDimesional? - refs #256

Location:
trunk/yat/regression
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/Linear.cc

    r1000 r1019  
    2424#include "Linear.h"
    2525#include "yat/statistics/AveragerPair.h"
    26 #include "yat/utility/vector.h"
     26#include "yat/utility/VectorBase.h"
    2727
    2828namespace theplu {
     
    5959  }
    6060
    61   void Linear::fit(const utility::vector& x, const utility::vector& y)
     61  void Linear::fit(const utility::VectorBase& x, const utility::VectorBase& y)
    6262  {
    6363    ap_.reset();
  • trunk/yat/regression/Linear.h

    r1000 r1019  
    3333namespace yat {
    3434  namespace utility {
    35     class vector;
     35    class VectorBase;
    3636  }
    3737namespace regression {
     
    9494       are independent.
    9595    */
    96     void fit(const utility::vector& x, const utility::vector& y) ;
     96    void fit(const utility::VectorBase& x, const utility::VectorBase& y) ;
    9797   
    9898    ///
  • trunk/yat/regression/Naive.cc

    r1000 r1019  
    2828#include "yat/statistics/Averager.h"
    2929#include "yat/statistics/AveragerWeighted.h"
    30 #include "yat/utility/vector.h"
     30#include "yat/utility/VectorBase.h"
    3131
    3232#include <cmath>
     
    4747
    4848
    49   void Naive::fit(const utility::vector& x, const utility::vector& y)
     49  void Naive::fit(const utility::VectorBase& x, const utility::VectorBase& y)
    5050  {
    5151    ap_.reset();
  • trunk/yat/regression/Naive.h

    r1000 r1019  
    3535namespace yat {
    3636  namespace utility {
    37     class vector;
     37    class VectorBase;
    3838  }
    3939namespace regression {
     
    6464    /// \sum{(y_i-m)^2} \f$.
    6565    ///
    66     void fit(const utility::vector& x, const utility::vector& y);
     66    void fit(const utility::VectorBase& x, const utility::VectorBase& y);
    6767
    6868    ///
  • trunk/yat/regression/OneDimensional.h

    r1000 r1019  
    3434namespace yat {
    3535namespace utility {
    36   class vector;
     36  class VectorBase;
    3737}
    3838namespace regression {
     
    7070       \f$, where \f$ \hat{y} \f$ is the fitted value.
    7171    */
    72     virtual void fit(const utility::vector& x, const utility::vector& y)=0;
     72    virtual void fit(const utility::VectorBase& x,
     73                     const utility::VectorBase& y)=0;
    7374   
    7475    ///
  • trunk/yat/regression/Polynomial.cc

    r1000 r1019  
    2626#include "Polynomial.h"
    2727#include "yat/utility/matrix.h"
    28 #include "yat/utility/vector.h"
     28#include "yat/utility/VectorBase.h"
    2929
    3030namespace theplu {
     
    4949
    5050
    51   void Polynomial::fit(const utility::vector& x, const utility::vector& y)
     51  void Polynomial::fit(const utility::VectorBase& x,
     52                       const utility::VectorBase& y)
    5253  {
    5354    ap_.add_values(x,y);
  • trunk/yat/regression/Polynomial.h

    r1000 r1019  
    3232namespace yat {
    3333namespace utility {
    34   class vector;
     34  class VectorBase;
    3535}
    3636namespace regression {
     
    6565    /// model and data.
    6666    ///
    67     void fit(const utility::vector& x, const utility::vector& y);
     67    void fit(const utility::VectorBase& x, const utility::VectorBase& y);
    6868
    6969    ///
Note: See TracChangeset for help on using the changeset viewer.