IOSACal

core – Core GNUCal library

«  cli – GNUCal command line interface   ::   Contents   ::   hpd – Highest Probability Density  »

core – Core GNUCal library

gnucal.core.HAS_SCIPY
if SciPy is available, also interpolation will be
gnucal.core.calibrate(f_m, sigma_m, f_t, sigma_t)

Calibration formula as defined by Bronk Ramsey 2008.

P(t) \propto \frac{\exp \left[-\frac{(f_m - f(t))^2}{2 (\sigma^2_{fm} + \sigma^2_{f}(t))}\right]}{\sqrt{\sigma^2_{fm} + \sigma^2_{f}(t)}}

See doi: 10.1111/j.1475-4754.2008.00394.x for a detailed account.

class gnucal.core.CalibrationCurve(calibration_string, interpolate=False)

A radiocarbon calibration curve.

Calibration data is loaded at runtime from source data files, and exposed as an array object.

__init__(calibration_string, interpolate=False)
_interpolate()
Interpolate calibration curve for more fine-grained results.
class gnucal.core.RadiocarbonSample(date, sigma)

A radiocarbon determination.

__init__(date, sigma)
class gnucal.core.CalibratedAge(calibration_curve, radiocarbon_sample, BP)

A calibrated radiocarbon age.

This object is self-contained, it exposes both the calibration curve and the radiocarbon sample objects so that they’re available for output interfaces directly.

Also BP is an attribute of CalibratedAge, that determines the desired output requested by the user.

«  cli – GNUCal command line interface   ::   Contents   ::   hpd – Highest Probability Density  »