|
STK++ 0.9.13
|
The MultidimRegression class allows to regress a multidimensional output variable among a multivariate explanation variable.
More...
#include <STK_MultidimRegression.h>

Public Types | |
| typedef IRegression< Array, Array, Weight > | Base |
Public Member Functions | |
| MultidimRegression (Array const *y=0, Array const *x=0) | |
| Constructor. | |
| virtual | ~MultidimRegression () |
| Destructor. | |
| Array const & | coefs () const |
| virtual Array | extrapolate (Array const &x) const |
Public Member Functions inherited from STK::IRegression< Array, Array, Weight > | |
| virtual | ~IRegression () |
| virtual destructor. | |
| Array const & | predicted () const |
| Array const & | residuals () const |
| Array * | p_predicted () |
| Array * | p_residuals () |
| int | nbFreeParameter () const |
| virtual bool | run () |
| run the computations. | |
| virtual bool | run (Weight const &weights) |
| run the weighted computations. | |
Public Member Functions inherited from STK::IRunnerSupervised< YArray_, XArray_, Weights_ > | |
| virtual void | setX (XArray_ const &x) |
| set the x data set (predictors). | |
| virtual void | setY (YArray_ const &y) |
| set the data set. | |
| virtual void | setData (YArray_ const &y, XArray_ const &x) |
| set the data set. | |
| virtual bool | run (Weights_ const &weights)=0 |
| run the weighted computations. | |
Public Member Functions inherited from STK::IRunnerBase | |
| String const & | error () const |
| get the last error message. | |
Protected Attributes | |
| ArrayXX | coefs_ |
Protected Attributes inherited from STK::IRegression< Array, Array, Weight > | |
| Array | predicted_ |
| Container of the predicted output. | |
| Array | residuals_ |
| Container of the residuals. | |
Protected Attributes inherited from STK::IRunnerSupervised< YArray_, XArray_, Weights_ > | |
| YArray_ const * | p_y_ |
| A pointer on the y data set. | |
| XArray_ const * | p_x_ |
| A pointer on the x data set. | |
Protected Attributes inherited from STK::IRunnerBase | |
| String | msg_error_ |
| String with the last error message. | |
| bool | hasRun_ |
true if run has been used, false otherwise | |
Private Member Functions | |
| virtual bool | regressionStep () |
| compute the regression function. | |
| virtual bool | regressionStep (Weight const &weights) |
| compute the weighted regression function. | |
| virtual bool | predictionStep () |
| Compute the predicted outputs by the regression function. | |
| virtual int | computeNbFreeParameter () const |
| Compute the number of parameter of the regression function. | |
Additional Inherited Members | |
Protected Types inherited from STK::IRegression< Array, Array, Weight > | |
| typedef IRunnerSupervised< Array, Array, Weight > | Base |
Protected Member Functions inherited from STK::IRegression< Array, Array, Weight > | |
| IRegression () | |
| Default constructor. | |
| IRegression (ArrayBase< Array > const *p_y, ArrayBase< Array > const *p_x) | |
| constructor | |
| IRegression (ArrayBase< Array > const &y, ArrayBase< Array > const &x) | |
| Constructor. | |
| virtual bool | initializeStep () |
| perform any computation needed before the call of the regression method. | |
| virtual bool | finalizeStep () |
| perform any computation needed after the call of the regression method. | |
| bool | residualsStep () |
| Compute the residuals of the model. | |
Protected Member Functions inherited from STK::IRunnerSupervised< YArray_, XArray_, Weights_ > | |
| IRunnerSupervised () | |
| default constructor | |
| IRunnerSupervised (YArray_ const *const &p_y, XArray_ const *const &p_x) | |
| constructor | |
| IRunnerSupervised (YArray_ const &y, XArray_ const &x) | |
| default constructor | |
| IRunnerSupervised (IRunnerSupervised const &runner) | |
| copy constructor | |
| ~IRunnerSupervised () | |
| destructor | |
| virtual void | updateY () |
| update the runner when y data set is set. | |
| virtual void | updateX () |
| update the runner when x data set is set. | |
| virtual void | update () |
| update the runner. | |
Protected Member Functions inherited from STK::IRunnerBase | |
| IRunnerBase () | |
| default constructor | |
| IRunnerBase (IRunnerBase const &runner) | |
| copy constructor | |
| virtual | ~IRunnerBase () |
| destructor | |
The MultidimRegression class allows to regress a multidimensional output variable among a multivariate explanation variable.
Definition at line 51 of file STK_MultidimRegression.h.
| typedef IRegression<Array, Array, Weight> STK::MultidimRegression< Array, Weight >::Base |
Definition at line 54 of file STK_MultidimRegression.h.
| STK::MultidimRegression< Array, Weight >::MultidimRegression | ( | Array const * | y = 0, |
| Array const * | x = 0 |
||
| ) |
Constructor.
| y,x | Variates to predict and co-variates |
Definition at line 92 of file STK_MultidimRegression.h.
|
inlinevirtual |
|
inline |
Definition at line 64 of file STK_MultidimRegression.h.
References STK::MultidimRegression< Array, Weight >::coefs_.
Referenced by STK::BSplineCoefficients< Data >::extrapolate().
|
inlineprivatevirtual |
Compute the number of parameter of the regression function.
Implements STK::IRegression< Array, Array, Weight >.
Definition at line 87 of file STK_MultidimRegression.h.
References STK::MultidimRegression< Array, Weight >::coefs_, STK::IArray2D< Derived >::sizeCols(), and STK::IArray2D< Derived >::sizeRows().
Referenced by STK::IRegression< YArray, XArray, Weights >::run(), and STK::IRegression< YArray, XArray, Weights >::run().
|
virtual |
x. Given the data set x will compute the values 
coefs_ have to be estimated previously. | x | the input data set |
Implements STK::IRegression< Array, Array, Weight >.
Definition at line 137 of file STK_MultidimRegression.h.
References STK::MultidimRegression< Array, Weight >::coefs_, and STK::mult().
Referenced by STK::AdditiveBSplineCoefficients< Array >::extrapolate().
|
privatevirtual |
Compute the predicted outputs by the regression function.
Implements STK::IRegression< Array, Array, Weight >.
Definition at line 129 of file STK_MultidimRegression.h.
References STK::MultidimRegression< Array, Weight >::coefs_, STK::mult(), STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_x_, and STK::IRegression< Array, Array, Weight >::predicted_.
Referenced by STK::IRegression< YArray, XArray, Weights >::run(), and STK::IRegression< YArray, XArray, Weights >::run().
|
privatevirtual |
compute the regression function.
Implements STK::IRegression< Array, Array, Weight >.
Definition at line 99 of file STK_MultidimRegression.h.
References STK::MultidimRegression< Array, Weight >::coefs_, STK::invert(), STK::IArray2D< Derived >::move(), STK::mult(), STK::multLeftTranspose(), STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_x_, STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_y_, and STK::ArrayBase< Derived >::symmetrize().
Referenced by STK::LinearAAModel< Array >::run(), STK::IRegression< YArray, XArray, Weights >::run(), STK::LinearAAModel< Array >::run(), and STK::IRegression< YArray, XArray, Weights >::run().
|
privatevirtual |
compute the weighted regression function.
| weights | the weights of the samples |
Implements STK::IRegression< Array, Array, Weight >.
Definition at line 114 of file STK_MultidimRegression.h.
References STK::MultidimRegression< Array, Weight >::coefs_, STK::invert(), STK::IArray2D< Derived >::move(), STK::mult(), STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_x_, STK::IRunnerSupervised< YArray_, XArray_, Weights_ >::p_y_, STK::ArrayBase< Derived >::symmetrize(), STK::weightedMultLeftTranspose(), and STK::wmultLeftTranspose().
|
protected |
Definition at line 73 of file STK_MultidimRegression.h.
Referenced by STK::MultidimRegression< Array, Weight >::coefs(), STK::MultidimRegression< Array, Weight >::computeNbFreeParameter(), STK::AdditiveBSplineCoefficients< Array >::extrapolate(), STK::MultidimRegression< Array, Weight >::extrapolate(), STK::AdditiveBSplineRegression< YArray, XArray, Weights >::extrapolate(), STK::BSplineRegression< YArray, XVector, Weights >::extrapolate(), STK::AdditiveBSplineRegression< YArray, XArray, Weights >::initializeStep(), STK::BSplineRegression< YArray, XVector, Weights >::initializeStep(), STK::AdditiveBSplineRegression< YArray, XArray, Weights >::predictionStep(), STK::BSplineRegression< YArray, XVector, Weights >::predictionStep(), STK::MultidimRegression< Array, Weight >::predictionStep(), STK::AdditiveBSplineRegression< YArray, XArray, Weights >::regressionStep(), STK::BSplineRegression< YArray, XVector, Weights >::regressionStep(), STK::MultidimRegression< Array, Weight >::regressionStep(), STK::MultidimRegression< Array, Weight >::regressionStep(), STK::AdditiveBSplineRegression< YArray, XArray, Weights >::regressionStep(), STK::BSplineRegression< YArray, XVector, Weights >::regressionStep(), and STK::AdditiveBSplineCoefficients< Array >::run().