Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CalibrationMethod
- data CalibrationDistribution
- = NormalDist
- | StudentTDist { }
- type YearBP = Word
- type YearBCAD = Int
- type YearRange = Word
- data UncalC14 = UncalC14 {}
- data UncalPDF = UncalPDF {}
- data CalCurveBP = CalCurveBP {}
- data CalCurveBCAD = CalCurveBCAD {}
- data CalCurveMatrix = CalCurveMatrix {}
- data CalPDF = CalPDF {}
- data CalExpr
- data CalC14 = CalC14 {}
- data CalRangeSummary = CalRangeSummary {}
- data HDR = HDR {}
Data types
This module defines the relevant data types for handling radiocarbon dates
data CalibrationMethod Source #
Different calibration algorithms implemented in currycarbon. Currently two distinct implementations are available, although both of them are similar Intercept calibration algorithms. Maybe more algorithms will be added in the future
MatrixMultiplication | A matrix multiplication method generally following this blog post by Martin Hinz.
This method is slower and the underlying code more verbose than |
Bchron | A fast and reliable calibration algorithm very similar to the implementation in the
R package Bchron by Andrew Parnell.
This algorithm can be run with a simple normal distribution ( |
Instances
Eq CalibrationMethod Source # | |
Defined in Currycarbon.Types (==) :: CalibrationMethod -> CalibrationMethod -> Bool # (/=) :: CalibrationMethod -> CalibrationMethod -> Bool # | |
Show CalibrationMethod Source # | |
Defined in Currycarbon.Types showsPrec :: Int -> CalibrationMethod -> ShowS # show :: CalibrationMethod -> String # showList :: [CalibrationMethod] -> ShowS # |
data CalibrationDistribution Source #
Statistical distributions to be used with the CalibrationMethod
Bchron
NormalDist | Normal distribution |
StudentTDist | Student's t-distribution. |
Instances
Eq CalibrationDistribution Source # | |
Defined in Currycarbon.Types | |
Show CalibrationDistribution Source # | |
Defined in Currycarbon.Types showsPrec :: Int -> CalibrationDistribution -> ShowS # show :: CalibrationDistribution -> String # showList :: [CalibrationDistribution] -> ShowS # |
A type to represent years BP. All numbers are positive and describe the distance in years to 1950AD: 3000 = 3000BP = 1050BC
A type to represent years BC or AD. Negative values describe years BC, positive values years AD: -5000 = 5000BC and 1300 = 1300AD
A data type to represent an uncalibrated radiocarbon date
UncalC14 | |
|
A data type to represent a year-wise probability density for uncalibrated dates Although technically not correct, we still call this a probability density function (PDF)
UncalPDF | |
|
data CalCurveBP Source #
A data type to represent a calibration curve with YearBP
CalCurveBP | |
|
Instances
Show CalCurveBP Source # | |
Defined in Currycarbon.Types showsPrec :: Int -> CalCurveBP -> ShowS # show :: CalCurveBP -> String # showList :: [CalCurveBP] -> ShowS # |
data CalCurveBCAD Source #
A second data type to represent a calibration curve, here now with YearBCAD
CalCurveBCAD | |
|
Instances
Show CalCurveBCAD Source # | |
Defined in Currycarbon.Types showsPrec :: Int -> CalCurveBCAD -> ShowS # show :: CalCurveBCAD -> String # showList :: [CalCurveBCAD] -> ShowS # |
data CalCurveMatrix Source #
A data type to represent a calibration curve in a wide matrix form
CalCurveMatrix | |
|
Instances
Show CalCurveMatrix Source # | |
Defined in Currycarbon.Types showsPrec :: Int -> CalCurveMatrix -> ShowS # show :: CalCurveMatrix -> String # showList :: [CalCurveMatrix] -> ShowS # |
A data type to represent a year-wise probability density for calibrated dates. Although technically not correct, we still call this a probability density function (PDF)
CalPDF | |
|
A data type to represent an expression for sum- or product calibration
A data type to represent a human readable summary of a calibrated radiocarbon date
CalC14 | |
|
data CalRangeSummary Source #
A data type to store a simple range summary of the calibrated date, including the median age
CalRangeSummary | |
|
Instances
Show CalRangeSummary Source # | |
Defined in Currycarbon.Types showsPrec :: Int -> CalRangeSummary -> ShowS # show :: CalRangeSummary -> String # showList :: [CalRangeSummary] -> ShowS # |
A data type to represent a high density region of a probability distribution. A high density region is here defined as an age range, within which the respective cummulative probability (e.g. of an calibrated radiocarbon date density curve) is above a certain threshold