61 static void scaling(std::vector<double>& v);
64 static void scaling(std::vector<std::vector<double> >& m);
67 static void centering(std::vector<std::vector<double> >& m);
70 static void centering(std::vector<double>& v);
75 static void centering(vector<double>& v,
double& mean,
double& std);
78 static double getVariance(
const std::vector<double>& v,
double mean=-1);
81 static double getStddev(
const vector<double>& v,
double mean=-1);
84 static double getCovariance(
const vector<double>& v1,
const vector<double>& v2,
double mean1,
double mean2);
87 static double getMean(
const std::vector<double>& v);
94 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);
98 static double getRowMean(
const vector<vector<double> >& v,
int row, std::multiset<int>* features_to_use=0);
102 static double getRowVariance(
const vector<vector<double> >& v,
int row,
double mean=-1, std::multiset<int>* features_to_use=0);
106 static double getRowStddev(
const vector<vector<double> >& v,
int row,
double mean=-1, std::multiset<int>* features_to_use=0);
112 static void centering(BALL::Matrix<double>& m);
115 static void centering(BALL::Matrix<double>& m,
int col);
118 static double getMean(
const BALL::Matrix<double>& m,
int col);
121 static double getVariance(
const BALL::Matrix<double>& m,
int col,
double mean=-1);
124 static double getStddev(
const BALL::Matrix<double>& m,
int col,
double mean=-1);
127 static double getCovariance(
const BALL::Matrix<double>& m,
int col1,
int col2,
double mean1=-1,
double mean2=-1);
130 static double sq(
const BALL::Matrix<double>& m,
int col,
double mean=-1);
133 static double distance(
const BALL::Matrix<double>& m,
int& row1,
int& row2,
double& p);
137 static double distance(
const BALL::Matrix<double>& m1,
const BALL::Matrix<double>& m2,
int& row1,
int& row2,
double& p);
143 static double distance(
const BALL::Matrix<double>& m1,
const BALL::Matrix<double>& m2,
int& row1,
int& row2,
String&
f,
String& g);
148 static double euclDistance(
const BALL::Matrix<double>& m1,
const BALL::Matrix<double>& m2,
int row1,
int row2);
151 static double euclNorm(
const Vector<double>& cv);
154 static double euclDistance(
const Vector<double>& c1,
const Vector<double>& c2);
157 static double scalarProduct(
const Vector<double>& cv);