Calibrator  0.1
Command line tool for 14C calibration
CalCurve Class Reference

Represents the calibration curve. More...

#include <cal_curve.h>

Public Member Functions

 CalCurve ()
 
 CalCurve (vector< int > cal_bp, vector< int > c14_bp, vector< int > error)
 
int import (string file)
 
vector< int > get_error ()
 
vector< int > get_bp ()
 
vector< int > get_c14_bp ()
 
int rows ()
 
int max_bp_cal_curve ()
 
int min_bp_cal_curve ()
 

Detailed Description

Represents the calibration curve.

This class represents the calibration curve

Author
Martin Hinz
Version
0.1
Date
14/07/2016 11:07:28

Contact: marti.nosp@m.n.hi.nosp@m.nz@uf.nosp@m.g.un.nosp@m.i-kie.nosp@m.l.de

Definition at line 32 of file cal_curve.h.

Constructor & Destructor Documentation

CalCurve::CalCurve ( )

Constructor for empty CalCurve()

Definition at line 8 of file cal_curve.cpp.

CalCurve::CalCurve ( vector< int >  cal_bp,
vector< int >  c14_bp,
vector< int >  error 
)

Constructor for CalCurve

Parameters
cal_bpa vector of bp values
c14_bpa vector of 14C bp values
errora vector of standard deviation from the calibration curve

Definition at line 3 of file cal_curve.cpp.

Member Function Documentation

vector< int > CalCurve::get_bp ( )
Returns
a vector<int> of the bp values of the calibration curve

Definition at line 64 of file cal_curve.cpp.

vector< int > CalCurve::get_c14_bp ( )
Returns
a vector<int> of the c14 bp values of the calibration curve

Definition at line 68 of file cal_curve.cpp.

vector< int > CalCurve::get_error ( )

returns the standard deviation of the calibration curve

Returns
a vector<int> of standard deviation from the calibration curve

Definition at line 60 of file cal_curve.cpp.

int CalCurve::import ( string  file)

Imports a Calibration Curve from file

Parameters
fileThe path of the calibration curve file.
Returns
0 if successful, 1 otherwise

Definition at line 15 of file cal_curve.cpp.

int CalCurve::max_bp_cal_curve ( )
Returns
the max bp value of the calibration curve

Definition at line 50 of file cal_curve.cpp.

int CalCurve::min_bp_cal_curve ( )
Returns
the min bp value of the calibration curve

Definition at line 55 of file cal_curve.cpp.

int CalCurve::rows ( )
Returns
the number of rows of the calibration curve

Definition at line 11 of file cal_curve.cpp.


The documentation for this class was generated from the following files: