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