41 static void scaling(std::vector<double>& v);
44 static void scaling(std::vector<std::vector<double> >& m);
47 static void centering(std::vector<std::vector<double> >& m);
50 static void centering(std::vector<double>& v);
55 static void centering(vector<double>& v,
double& mean,
double& std);
58 static double getVariance(
const std::vector<double>& v,
double mean=-1);
61 static double getStddev(
const vector<double>& v,
double mean=-1);
64 static double getCovariance(
const vector<double>& v1,
const vector<double>& v2,
double mean1,
double mean2);
67 static double getMean(
const std::vector<double>& v);
70 static double calculateRankCorrelation(vector<double>& observed_values, vector<double>& expected_values);
75 static double getRowCovariance(
const vector<vector<double> >& v,
int row1,
int row2,
double mean1=-1,
double mean2=-1, std::multiset<int>* features_to_use=0);
79 static double getRowMean(
const vector<vector<double> >& v,
int row, std::multiset<int>* features_to_use=0);
83 static double getRowVariance(
const vector<vector<double> >& v,
int row,
double mean=-1, std::multiset<int>* features_to_use=0);
87 static double getRowStddev(
const vector<vector<double> >& v,
int row,
double mean=-1, std::multiset<int>* features_to_use=0);
93 static void centering(Eigen::MatrixXd& m);
96 static void centering(Eigen::MatrixXd& m,
int col);
99 static double getMean(
const Eigen::MatrixXd& m,
int col);
102 static double getVariance(
const Eigen::MatrixXd& m,
int col,
double mean=-1);
105 static double getStddev(
const Eigen::MatrixXd& m,
int col,
double mean=-1);
108 static double getCovariance(
const Eigen::MatrixXd& m,
int col1,
int col2,
double mean1=-1,
double mean2=-1);
111 static double sq(
const Eigen::MatrixXd& m,
int col,
double mean=-1);
114 static double distance(
const Eigen::MatrixXd& m,
int& row1,
int& row2,
double& p);
118 static double distance(
const Eigen::MatrixXd& m1,
const Eigen::MatrixXd& m2,
int& row1,
int& row2,
double& p);
124 static double distance(
const Eigen::MatrixXd& m1,
const Eigen::MatrixXd& m2,
int& row1,
int& row2,
String& f,
String& g);
129 static double euclDistance(
const Eigen::MatrixXd& m1,
const Eigen::MatrixXd& m2,
int row1,
int row2);
132 static double euclNorm(
const Eigen::VectorXd& cv);
135 static double euclDistance(
const Eigen::VectorXd& c1,
const Eigen::VectorXd& c2);
138 static double scalarProduct(
const Eigen::VectorXd& cv);
static double getCovariance(const list< double > &v1, const list< double > &v2, double mean1, double mean2)
static double getMean(const list< double > &v)
static double getStddev(const list< double > &m, double mean)