1 #ifndef _theplu_yat_regression_local_
2 #define _theplu_yat_regression_local_
27 #include "yat/utility/Vector.h"
33 namespace regression {
36 class OneDimensionalWeighted;
67 void add(
const double x,
const double y);
76 void fit(
const size_t step_size,
const size_t nof_points);
106 std::vector<std::pair<double, double> > data_;
119 std::ostream& operator<<(std::ostream&,
const Local& );
Class for Locally weighted regression.
Definition: Local.h:49
virtual ~Local(void)
The destructor.
void add(const double x, const double y)
Local(OneDimensionalWeighted &r, Kernel &k)
Constructor taking type of regressor, type of kernel.
This is the yat interface to GSL vector.
Definition: Vector.h:57
void reset(void)
Set everything to zero.
Interface Class for calculating the weights in a more general way than classical rectangular windows...
Definition: Kernel.h:36
Interface Class for One Dimensional fitting in a weighted fashion.
Definition: OneDimensionalWeighted.h:41
const utility::Vector & y_predicted(void) const
const utility::Vector & x(void) const
void fit(const size_t step_size, const size_t nof_points)
const utility::Vector & y_err(void) const