48#ifdef STK_AAMODELS_VERBOSE
284#ifdef STK_AAMODELS_DEBUG
291 Stat::uncenter(*p_workData_, mean_);
294 Stat::center(*p_workData_, mean_);
302#ifdef STK_AAMODELS_DEBUG
309 Stat::uncenter(*p_workData_, mean_);
313 Stat::center(*p_workData_, weights, mean_);
321#ifdef STK_AAMODELS_DEBUG
328 Stat::unstandardize(*p_workData_, mean_, std_);
331 Stat::standardize(*p_workData_, mean_, std_);
339#ifdef STK_AAMODELS_DEBUG
346 Stat::unstandardize(*p_workData_, mean_, std_);
350 Stat::standardize(*p_workData_, weights, mean_, std_);
359#ifdef STK_AAMODELS_DEBUG
374#ifdef STK_AAMODELS_DEBUG
389#ifdef STK_AAMODELS_DEBUG
403#ifdef STK_AAMODELS_DEBUG
417#ifdef STK_AAMODELS_DEBUG
421 Stat::uncenter(*p_predicted_, mean_);
427#ifdef STK_AAMODELS_DEBUG
433 Stat::unstandardize(*p_predicted_, mean_, std_);
434 Stat::unstandardize(*p_residuals_, std_);
A Array2DPoint is a one dimensional horizontal container.
A Array2DVector is a one dimensional horizontal container.
This file define methods for displaying Arrays and Expressions.
In this file we define the interface base class IReducer.
In this file we define the Interface base class IRegression.
#define STKRUNTIME_ERROR_NO_ARG(Where, Error)
In this file we specialize the class Multivariate to Real type.
Interface base class for reducing methods.
void setDimension(const int &dim)
set the number of dimension.
Array * p_reduced() const
get a pointer on the reduced data set
Interface base class for Regression methods.
virtual bool run()
run the computations.
virtual bool run()=0
run the computations.
IRegression< Array, Array, VectorX > Regressor
@
Array2DPoint< Real > PointX
final class for a Real horizontal container.
The namespace STK is the main domain space of the Statistical ToolKit project.
void setDimension(int const &dim)
bool isStandardized_
a boolean true if the working data set is standardized, false otherwise
void freeRegressor()
delete the regressor set to this model by the method setRegressor.
void reductionStep()
compute the reduction of the data set and store the result in the p_reduced_ container.
Reducer *const & p_reducer() const
PointX mean_
vector of the means of the input data set.
PointX const & mean() const
Array * p_residuals_
Array of the residuals: the data set is shared with p_regressor and set when the regression method is...
int dim_
The dimension of the AA Model.
void regressionStep()
compute the regression of the original data set and set the results in p_predicted and p_residuals.
Array *const & p_reduced() const
IAAModel(Array *p_workData)
Constructor.
Regressor * p_regressor_
pointer on the regression method.
PointX std_
vector of the standard deviation of the input data set.
Regressor *const & p_regressor() const
void uncenterResults()
uncenter the predicted data set.
bool isStandardized() const
Array * p_predicted_
Array of the predicted data set: the data set is shared with p_regressor and set when the regression ...
void setRegressor(Regressor *p_regressor)
Array * p_workData_
Array of the local data set.
void setReducer(Reducer *p_reducer)
Array const & workData() const
void setWorkData(Array &workData)
PointX const & std() const
void center()
center the data set workData_.
bool isCentered_
a boolean true if the working data set is centered, false otherwise.
void unstandardizeResults()
unstandardize the predicted data set and the residuals.
Array *const & p_residuals() const
Array *const & p_predicted() const
Array * p_reduced_
Array of the reduced data set : the data set is shared with p_reducer and set when the regression met...
void freeReducer()
delete the reducer set to this model by the method setReducer.
Reducer * p_reducer_
pointer on the reeducer.
Array2DVector< Real > VectorX
IReducer< Array, VectorX > Reducer
reducer type
void standardize()
standardize the data set.