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

Generated using doxygen 1.14.0