37 #include <gsl/gsl_randist.h>
38 #include <gsl/gsl_cdf.h>
51 class RegressionModel;
73 void crossValidation(
int k,
bool restore=1);
79 void crossValidation(
int k, vector<BALL::Matrix<double> >* results,
bool restore=1);
85 void bootstrap(
int k,
bool restore=1);
91 void bootstrap(
int k, vector<BALL::Matrix<double> >* results,
bool restore=1);
93 void bootstrap1(
int k, vector<BALL::Matrix<double> >* results,
bool restore=1);
98 const BALL::Matrix<double>& yRandomizationTest(
int runs,
int k);
121 double getMaxError();
123 void setCVRes(
double d);
126 void setQ2(
double d);
128 void testInputData(
bool transform=0);
133 void selectStat(
int s);
138 void calculateCoefficientStdErrors(
int k,
bool b=1);
141 const BALL::Matrix<double>* getCoefficientStdErrors();
143 void setCoefficientStdErrors(
const BALL::Matrix<double>* stddev);
145 void saveToFile(
string filename)
const;
147 void saveToFile(
string filename,
const double& r2,
const double& q2,
const Matrix<double>& coefficient_stddev,
const Matrix<double>& yRand_results)
const;
149 void readFromFile(
string filename);
171 void testAllSubstances(
bool transform);
173 void backupTrainingResults();
175 void restoreTrainingResults();
232 #endif // REGVALIDATION