36#ifndef STK_BSPLINEREGRESSION_H
37#define STK_BSPLINEREGRESSION_H
50template <
class YArray,
class XVector,
class Weights = VectorX>
128template <
class YArray,
class XVector,
class Weights>
131 ,
int const& nbControlPoints
136 , nbControlPoints_(nbControlPoints)
139 , coefs_(*
p_x, nbControlPoints_, degree_, position_)
143template <
class YArray,
class XVector,
class Weights>
147template <
class YArray,
class XVector,
class Weights>
151template <
class YArray,
class XVector,
class Weights>
166template <
class YArray,
class XVector,
class Weights>
181template <
class YArray,
class XVector,
class Weights>
194template <
class YArray,
class XVector,
class Weights>
In this file we define the BSplineCoefficients class.
In this file we define the Interface base class IRegression.
In this file we implement inversion method for general matrix.
TransposeOperator< Derived > const transpose() const
SymmetrizeOperator< Derived > const symmetrize() const
VectorX const & knots() const
Compute a BSpline, multi-valued, regression function using BSpline basis.
int degree_
degree of the B_Spline curve
BSplineCoefficients< XVector > coefs_
Coefficients of the regression matrix.
virtual YArray extrapolate(XVector const &x) const
YArray controlPoints_
Estimated control points of the B-spline curve.
IRegression< YArray, XVector, Weights > Base
BSplineRegression(YArray const *p_y, XVector const *p_x, int const &nbControlPoints, int const °ree=3, KnotsPosition const &position=Regress::uniformKnotsPositions_)
Constructor.
virtual bool regressionStep()
Compute the regression function.
virtual bool initializeStep()
Compute the coefficients of the BSpline basis.
YArray const & controlPoints() const
YArray const & coefficients() const
int nbControlPoints_
number of control points of the B-spline curve.
int nbControlPoints() const
virtual ~BSplineRegression()
virtual destructor.
VectorX const & knots() const
virtual int computeNbFreeParameter() const
Compute the number of parameter of the regression function.
virtual bool predictionStep()
Compute the predicted outputs by the regression function.
Regress::KnotsPosition KnotsPosition
KnotsPosition position_
method of position of the knots of the B-spline curve
Coefs const & coefficients() const
Interface base class for Regression methods.
YArray residuals_
Container of the residuals.
YArray predicted_
Container of the predicted output.
YArray const * p_y_
A pointer on the y data set.
XArray const * p_x_
A pointer on the x data set.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
hidden::AlgebraTraits< InvertMatrix< Matrix, hidden::Traits< Matrix >::sizeRows_ > >::Result invert(Matrix const &mat)
Utility function allowing to compute the inverse of a matrix.
KnotsPosition
Method to use for positioning the knots for BSpline basis.
@ uniformKnotsPositions_
uniform knots
The namespace STK is the main domain space of the Statistical ToolKit project.