1 #ifndef _theplu_yat_regression_multidimensionalweighted_
2 #define _theplu_yat_regression_multidimensionalweighted_
26 #include "yat/utility/Matrix.h"
27 #include "yat/utility/Vector.h"
29 #include <gsl/gsl_multifit.h>
33 namespace regression {
55 double chisq(
void)
const;
77 const double w=1)
const;
92 double s2(
const double w=1.0)
const;
103 gsl_multifit_linear_workspace* work_;
double s2(const double w=1.0) const
double predict(const utility::VectorBase &x) const
const utility::Vector & fit_parameters(void) const
double standard_error2(const utility::VectorBase &x) const
This is the yat interface to GSL vector.
Definition: Vector.h:57
This is the yat interface to GSL vector.
Definition: VectorBase.h:52
~MultiDimensionalWeighted(void)
Destructor.
void fit(const utility::Matrix &X, const utility::VectorBase &y, const utility::VectorBase &w)
Interface to GSL matrix.
Definition: Matrix.h:63
MultiDimensionalWeighted(void)
Default Constructor.
MultiDimesional fitting.
Definition: MultiDimensionalWeighted.h:38
double prediction_error2(const utility::VectorBase &x, const double w=1) const