currycarbon-0.1.1.0: A package for simple, fast radiocarbon calibration
Safe HaskellNone
LanguageHaskell2010

Currycarbon.Calibration.Utils

Synopsis

Documentation

dnorm :: Float -> Float -> Float -> Float Source #

get the density of a normal distribution at a point x

>>> dnorm 1.0 1.0 1.0
0.3989423

dt :: Double -> Float -> Float Source #

get the density of student's-t distribution at a point x

>>> dt 1.0 1.0
0.15915494

getRelevantCalCurveSegment :: UncalC14 -> CalCurveBP -> CalCurveBP Source #

Take an uncalibrated date and a raw calibration curve and return the relevant segment of the calibration curve

prepareCalCurveSegment :: Bool -> CalCurveBP -> CalCurveBCAD Source #

Modify a calibration curve (segment) with multiple optional steps, including interpolation and transforming dates to BC/AD format