Calibrator  0.1
Command line tool for 14C calibration
uncal_date.h
Go to the documentation of this file.
1 
19 #ifndef _uncal_date_h_
20 #define _uncal_date_h_
21 
22 #include <iostream>
23 #include "cal_date.h"
24 #include "cal_curve.h"
25 #include <boost/math/distributions/students_t.hpp>
26 #include <numeric>
27 
28 using namespace std;
29 
30 class UncalDate{
31  public:
32  UncalDate(string name, int bp, int std);
33  UncalDate();
34  void info()const;
35  CalDate calibrate(CalCurve &calcurve);
36  private:
37  string _name;
38  int _bp;
39  int _std;
40  vector<double> compute_probs(vector<int> &error_cal_curve, vector<int> &full_c14_bp);
41  double studentT( int df );
42  void generate_date_grid(std::vector<int>& full_bp, std::vector<int>& full_c14_bp, std::vector<int>& full_error, CalCurve& calcurve);
43  int LinearInterpolateInt(int y1, int y2, double mu);
44 };
45 
46 
47 #endif
Represents a calibrated date.
Definition: cal_date.h:33
Represents an uncalibrated date.
Definition: uncal_date.h:30
Represents the calibration curve.
Definition: cal_curve.h:32