| Safe Haskell | Safe-Inferred |
|---|---|
| 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 NamedCalExpr = NamedCalExpr {}
- data CalExpr
- data TimeWindowBP = TimeWindowBP String YearBP YearBP
- data TimeWindowBCAD = TimeWindowBCAD String YearBCAD YearBCAD
- data CalC14 = CalC14 {}
- data CalRangeSummary = CalRangeSummary {}
- data HDR = HDR {}
- data RandomAgeSample = RandomAgeSample {}
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
| Show CalibrationMethod Source # | |
Defined in Currycarbon.Types Methods showsPrec :: Int -> CalibrationMethod -> ShowS # show :: CalibrationMethod -> String # showList :: [CalibrationMethod] -> ShowS # | |
| Eq CalibrationMethod Source # | |
Defined in Currycarbon.Types Methods (==) :: CalibrationMethod -> CalibrationMethod -> Bool # (/=) :: CalibrationMethod -> CalibrationMethod -> Bool # | |
data CalibrationDistribution Source #
Statistical distributions to be used with the CalibrationMethod Bchron
Constructors
| NormalDist | Normal distribution |
| StudentTDist | Student's t-distribution. |
Instances
| Show CalibrationDistribution Source # | |
Defined in Currycarbon.Types Methods showsPrec :: Int -> CalibrationDistribution -> ShowS # show :: CalibrationDistribution -> String # showList :: [CalibrationDistribution] -> ShowS # | |
| Eq CalibrationDistribution Source # | |
Defined in Currycarbon.Types Methods (==) :: CalibrationDistribution -> CalibrationDistribution -> Bool # (/=) :: CalibrationDistribution -> CalibrationDistribution -> Bool # | |
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
| |
data NamedCalExpr Source #
A data type for named calibration expressions
Constructors
| NamedCalExpr | |
Instances
| Show NamedCalExpr Source # | |
Defined in Currycarbon.Types Methods showsPrec :: Int -> NamedCalExpr -> ShowS # show :: NamedCalExpr -> String # showList :: [NamedCalExpr] -> ShowS # | |
| Eq NamedCalExpr Source # | |
Defined in Currycarbon.Types | |
A data type to represent an expression for sum- or product calibration
data TimeWindowBP Source #
Constructors
| TimeWindowBP String YearBP YearBP |
Instances
| Show TimeWindowBP Source # | |
Defined in Currycarbon.Types Methods showsPrec :: Int -> TimeWindowBP -> ShowS # show :: TimeWindowBP -> String # showList :: [TimeWindowBP] -> ShowS # | |
| Eq TimeWindowBP Source # | |
Defined in Currycarbon.Types | |
data TimeWindowBCAD Source #
Constructors
| TimeWindowBCAD String YearBCAD YearBCAD |
Instances
| Show TimeWindowBCAD Source # | |
Defined in Currycarbon.Types Methods showsPrec :: Int -> TimeWindowBCAD -> ShowS # show :: TimeWindowBCAD -> String # showList :: [TimeWindowBCAD] -> ShowS # | |
| Eq TimeWindowBCAD Source # | |
Defined in Currycarbon.Types Methods (==) :: TimeWindowBCAD -> TimeWindowBCAD -> Bool # (/=) :: TimeWindowBCAD -> TimeWindowBCAD -> Bool # | |
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 cumulative probability (e.g. of an calibrated radiocarbon date density curve) is above a certain threshold
Constructors
| HDR | |
data RandomAgeSample Source #
A data type to store random samples drawn from a calPDF
Constructors
| RandomAgeSample | |
Fields
| |
Instances
| Show RandomAgeSample Source # | |
Defined in Currycarbon.Types Methods showsPrec :: Int -> RandomAgeSample -> ShowS # show :: RandomAgeSample -> String # showList :: [RandomAgeSample] -> ShowS # | |