Ignore:
Timestamp:
Dec 29, 2004, 10:29:54 AM (18 years ago)
Author:
Peter
Message:

RegressionLocal? added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/RegressionLocal.h

    r206 r216  
    3232
    3333    ///
    34     /// Constructor doing the thing.
     34    /// Constructor loading the object with data, type of regressor
     35    /// and type kernel.
    3536    ///
    36     RegressionLocal(const gslapi::vector& x, const gslapi::vector& y,
    37                     const Regression&, const RegressionKernel&);
     37    RegressionLocal(const gslapi::vector& x, const gslapi::vector& y,
     38                    Regression& r, RegressionKernel& k,
     39                    const gslapi::vector&);
    3840
    3941    ///
     
    4749    virtual ~RegressionLocal(void) {};
    4850
     51    inline gslapi::vector estimated_x(void) const { return estimated_x_; }
     52    inline gslapi::vector estimated_y(void) const { return estimated_y_; }
     53    inline gslapi::vector estimated_y_err(void) const {return estimated_y_err_;}
     54 
     55    ///
     56    /// Function
     57    ///
     58    void fit(const double fraction);
    4959         
    50   private:
    51     gslapi::vector data_x_;
     60  private:
     61    std::vector<std::pair<double, double> > data_;
    5262    gslapi::vector data_y_;
    53     const RegressionKernel* kernel_;
    54     const Regression* regression_;
     63    RegressionKernel* kernel_;
     64    Regression* regression_;
    5565    gslapi::vector estimated_x_;
    5666    gslapi::vector estimated_y_;
     67    gslapi::vector estimated_y_err_;
    5768   
     69   
    5870  };
     71
     72  ///
     73  /// The output operator for Local Regression Class.
     74  ///
     75  std::ostream& operator<< (std::ostream& s, const RegressionLocal&);
    5976
    6077}} // of namespace statistics and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.