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

Currycarbon.Types

Contents

Synopsis

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, but it has some advantages regarding didactics and the inspection of intermediate data products for debugging. Using this method is thus generally not advisable, except for specific applications, where a more technical insight into C14 calibration is needed

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 (NormalDist) or Student's t-distribution (StudentTDist), which is recommended

data CalibrationDistribution Source #

Statistical distributions to be used with the CalibrationMethod Bchron

Constructors

NormalDist

Normal distribution

StudentTDist

Student's t-distribution.

Fields

type YearBP = Word Source #

A type to represent years BP. All numbers are positive and describe the distance in years to 1950AD: 3000 = 3000BP = 1050BC

type YearBCAD = Int Source #

A type to represent years BC or AD. Negative values describe years BC, positive values years AD: -5000 = 5000BC and 1300 = 1300AD

type YearRange = Word Source #

A type to represent a range of years

data UncalC14 Source #

A data type to represent an uncalibrated radiocarbon date

Constructors

UncalC14 

Fields

Instances

Instances details
Eq UncalC14 Source # 
Instance details

Defined in Currycarbon.Types

Show UncalC14 Source # 
Instance details

Defined in Currycarbon.Types

data UncalPDF Source #

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

Instances

Instances details
Show UncalPDF Source # 
Instance details

Defined in Currycarbon.Types

data CalCurveBP Source #

A data type to represent a calibration curve with YearBP

Constructors

CalCurveBP 

Fields

Instances

Instances details
Show CalCurveBP Source # 
Instance details

Defined in Currycarbon.Types

data CalCurveBCAD Source #

A second data type to represent a calibration curve, here now with YearBCAD

Constructors

CalCurveBCAD 

Fields

Instances

Instances details
Show CalCurveBCAD Source # 
Instance details

Defined in Currycarbon.Types

data CalCurveMatrix Source #

A data type to represent a calibration curve in a wide matrix form

Constructors

CalCurveMatrix 

Fields

Instances

Instances details
Show CalCurveMatrix Source # 
Instance details

Defined in Currycarbon.Types

data CalPDF Source #

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

Instances

Instances details
Eq CalPDF Source # 
Instance details

Defined in Currycarbon.Types

Methods

(==) :: CalPDF -> CalPDF -> Bool #

(/=) :: CalPDF -> CalPDF -> Bool #

Show CalPDF Source # 
Instance details

Defined in Currycarbon.Types

data CalExpr Source #

A data type to represent an expression for sum- or product calibration

Instances

Instances details
Show CalExpr Source # 
Instance details

Defined in Currycarbon.Types

data CalC14 Source #

A data type to represent a human readable summary of a calibrated radiocarbon date

Constructors

CalC14 

Fields

Instances

Instances details
Show CalC14 Source # 
Instance details

Defined in Currycarbon.Types

data CalRangeSummary Source #

A data type to store a simple range summary of the calibrated date, including the median age

Constructors

CalRangeSummary 

Fields

Instances

Instances details
Show CalRangeSummary Source # 
Instance details

Defined in Currycarbon.Types

data HDR Source #

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 

Fields

Instances

Instances details
Eq HDR Source # 
Instance details

Defined in Currycarbon.Types

Methods

(==) :: HDR -> HDR -> Bool #

(/=) :: HDR -> HDR -> Bool #

Show HDR Source # 
Instance details

Defined in Currycarbon.Types

Methods

showsPrec :: Int -> HDR -> ShowS #

show :: HDR -> String #

showList :: [HDR] -> ShowS #