MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
MiscFunction.hxx
Go to the documentation of this file.
1 #ifndef _MISCFUNCTION_HXX_
2 #define _MISCFUNCTION_HXX_
3 
9 #include <iostream>
10 #include <sstream>
11 #include <vector>
12 #include <string>
13 using namespace std;
14 
16 
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);
32 
34 
45 void FindFitParameters(int N, const vector<double> &x, const vector<double> &y, const vector<double> &y_sdev,
46  double& A, double& B);
47 
48 
50 string __macro_method_name__ (string x);
51 
53 
57 string wordwrap (string x, int w);
58 
59 #endif
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

MURE Project, documentation generated by Doxygen 1.8.5 - Mon Nov 17 2014