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

Currycarbon.Calibration.Utils

Synopsis

Documentation

normalizeCalPDF :: CalPDF -> CalPDF Source #

Rescale a CalPDF so that the sum of the densities is approx. 1.0

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

get the density of a normal distribution at a point x

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

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

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