| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Currycarbon.Types
Contents
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
Constructors
| 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 ( |
Fields | |
Instances
| Eq CalibrationMethod Source # | |
Defined in Currycarbon.Types Methods (==) :: CalibrationMethod -> CalibrationMethod -> Bool # (/=) :: CalibrationMethod -> CalibrationMethod -> Bool # | |
| Show CalibrationMethod Source # | |
Defined in Currycarbon.Types Methods showsPrec :: Int -> CalibrationMethod -> ShowS # show :: CalibrationMethod -> String # showList :: [CalibrationMethod] -> ShowS # | |
data CalibrationDistribution Source #
Statistical distributions to be used with the CalibrationMethod Bchron
Constructors
| NormalDist | Normal distribution |
| StudentTDist | Student's t-distribution. |
Instances
| Eq CalibrationDistribution Source # | |
Defined in Currycarbon.Types Methods (==) :: CalibrationDistribution -> CalibrationDistribution -> Bool # (/=) :: CalibrationDistribution -> CalibrationDistribution -> Bool # | |
| Show CalibrationDistribution Source # | |
Defined in Currycarbon.Types Methods 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
Constructors
| UncalC14 | |
Fields
| |
Instances
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)
Constructors
| UncalPDF | |
Fields
| |
data CalCurveBP Source #
A data type to represent a calibration curve with YearBP
Constructors
| CalCurveBP | |
Fields
| |
Instances
| Show CalCurveBP Source # | |
Defined in Currycarbon.Types Methods 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
Constructors
| CalCurveBCAD | |
Fields
| |
Instances
| Show CalCurveBCAD Source # | |
Defined in Currycarbon.Types Methods 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
Constructors
| CalCurveMatrix | |
Fields
| |
Instances
| Show CalCurveMatrix Source # | |
Defined in Currycarbon.Types Methods 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)
Constructors
| CalPDF | |
Fields
| |
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
Constructors
| CalC14 | |
Fields
| |
data CalRangeSummary Source #
A data type to store a simple range summary of the calibrated date, including the median age
Constructors
| CalRangeSummary | |
Fields
| |
Instances
| Show CalRangeSummary Source # | |
Defined in Currycarbon.Types Methods 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
Constructors
| HDR | |