njkk08.h
1 
2 #include <fstream>
3 #include <iostream>
4 #include <vector>
5 
6 float plotpa0,plotRM,plotRM_err;
7 
8 std::vector<double> goodfreqs;
9 std::vector<double> goodpa;
10 std::vector<double> goodpa_stddev;
11 
12 std::vector<double> goodi;
13 std::vector<double> goodirms;
14 std::vector<double> goodv;
15 std::vector<double> goodvrms;
16 std::vector<double> goodq;
17 std::vector<double> goodqrms;
18 std::vector<double> goodu;
19 std::vector<double> goodurms;
20 
21 std::vector<double> goodl;
22 std::vector<double> goodlrms;
23 
24 
25 std::vector<double> delta_V;
26 std::vector<double> delta_Verr;
27 std::vector<double> delta_L;
28 std::vector<double> delta_Lerr;
29 
30 
31 void set_plotparams(float _plotpa0,float _plotRM,float _plotRM_err){
32 
33  plotpa0=_plotpa0;
34  plotRM=_plotRM;
35  plotRM_err=_plotRM_err;
36 
37 }
38 
39 std::vector<float> fbscr_RMs;
40 std::vector<float> fbscr_RM_errs;
41 std::vector<float> fbscr_RM_probmax;
42 //std::vector<float> fbscr_RM_chisqmin;
43 
44 float best_fbscr_probmax;
45 //float best_fbscr_chisqmin;
46 float best_fbscr_RM;
47 float best_fbscr_RM_err;
48 
49 bool outofrange_err;
50 bool zero_err;
51 bool anomalous_err;
52 
53 float lthresh;
54 //bool good_lthresh;
55 bool good_fbscrunch;
56 bool plotv;
57 
58 float minrm;
59 float maxrm;
60 double rmstep;
61 unsigned rmsteps;
62 
63 float lookup_PA_err(float xint);
64 
65 float lookup_RM_err(std::vector<float>& xint);
66 
67 std::vector<int> ibin_vec;
68 
69 void Kasterg_Fit(float& fRM_low,float& fRM_high,float& fRM_step,
70  const std::vector<double>& freqs,
71  const std::vector<double>& PAs,
72  const std::vector<double>& PA_stddevs,
73  double& RM,double& PA0,double& sigRM,double& sigPA0,
74  double& probmax,int& iRM);
75 
const ScalarMath pow(const ScalarMath &x, const ScalarMath &y)

Generated using doxygen 1.8.17