6 #ifndef BALL_SCORING_COMMON_SCORINGOPTIMIZER_H
7 #define BALL_SCORING_COMMON_SCORINGOPTIMIZER_H
20 void addComplex(
String name,
String receptor_file,
String ligand_file,
double binding_free_energy);
22 void evaluate(
double* correlation = 0,
double* R2 = 0,
double* RMSE = 0,
Size* no_valid_complexes = 0);
24 void printMatrix(std::ostream& out = std::cout);
43 double binding_free_energy;
46 list<Complex> complexes_;
49 String scoring_function_name_;
59 static double getMean(
const list<double>& v);
61 static double getCovariance(
const list<double>& v1,
const list<double>& v2,
double mean1,
double mean2);
63 static double getStddev(
const list<double>& m,
double mean);
69 #endif // BALL_SCORING_COMMON_SCORINGOPTIMIZER_H
std::vector< String > score_contribution_names
std::list< double > expected_affinities
static double getCovariance(const list< double > &v1, const list< double > &v2, double mean1, double mean2)
std::complex< BALL_COMPLEX_PRECISION > Complex
std::list< String > target_names
static double getMean(const list< double > &v)
static double getStddev(const list< double > &m, double mean)
std::list< double > predictions
static double getSumOfSquares(const list< double > &m, double mean)
std::vector< std::vector< double > > score_contributions