Classes | |
class | Regression |
Functions | |
GSTLEARN_EXPORT Regression | regression (Db *db1, const String &nameResp, const VectorString &nameAux=VectorString(), int mode=0, bool flagCst=false, Db *db2=nullptr, const Model *model=nullptr) |
GSTLEARN_EXPORT VectorDouble | regressionDeming (const VectorDouble &x, const VectorDouble &y, double delta=1) |
GSTLEARN_EXPORT Regression regression | ( | Db * | db1, |
const String & | nameResp, | ||
const VectorString & | nameAux, | ||
int | mode, | ||
bool | flagCst, | ||
Db * | db2, | ||
const Model * | model | ||
) |
Evaluate the regression
[in,out] | db1 | Db descriptor (for target variable) |
[in] | nameResp | Name of the target variable |
[in] | nameAux | Vector of names of the explanatory variables |
[in] | mode | Type of calculation
|
[in] | flagCst | The constant is added as explanatory variable |
[in] | db2 | Db descriptor (for auxiliary variables) |
[in] | model | Model (only used for Drift functions if mode==2) |
GSTLEARN_EXPORT VectorDouble regressionDeming | ( | const VectorDouble & | x, |
const VectorDouble & | y, | ||
double | delta | ||
) |
Calculate the coefficients of the Deming regression (with 2 variables)
x | Vector for the first variable |
y | Vector for the second variable |
delta | ratio of error variances (s_y^2 / s_x^2) |