1 #ifndef _MISCFUNCTION_HXX_
2 #define _MISCFUNCTION_HXX_
30 void Regression(
int N,
const vector<double> &x,
const vector<double> &y,
const vector<double> &y_sdev,
31 double& A,
double& B,
double& A_sdev,
double& B_sdev,
double& chi2);
45 void FindFitParameters(
int N,
const vector<double> &x,
const vector<double> &y,
const vector<double> &y_sdev,
46 double& A,
double& B);
string __macro_method_name__(string x)
this is for METHOD_NAME macro, extracting method name from PRETTY_FUNCTION
Definition: MiscFunction.cxx:38
string wordwrap(string x, int w)
word-wrap a string
Definition: MiscFunction.cxx:7
void Regression(int N, const vector< double > &x, const vector< double > &y, const vector< double > &y_sdev, double &A, double &B, double &A_sdev, double &B_sdev, double &chi2)
Linear Regression function.
Definition: MiscFunction.cxx:54
void FindFitParameters(int N, const vector< double > &x, const vector< double > &y, const vector< double > &y_sdev, double &A, double &B)
Find Slope and Intersept of fit.
Definition: MiscFunction.cxx:123