Giter Site home page Giter Site logo

joeroe / ruby-radiocarbon Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 93 KB

Ruby gem for fast radiocarbon calibration

Home Page: https://rubydoc.info/github/joeroe/ruby-radiocarbon

License: MIT License

Ruby 100.00%
radiocarbon ruby radiocarbon-calibration radiocarbon-dates

ruby-radiocarbon's Introduction

ruby-radiocarbon

latest release on rubygems.org downloads from rubygems.org tests test coverage

A Ruby gem for fast radiocarbon calibration.

Full documentation can be found at RubyDoc.

Installation

Install the latest release from RubyGems:

gem install radiocarbon

Or by add it to your project's Gemfile:

gem 'radiocarbon', '~> 0.1.0'

Usage

As a Ruby library:

# Returns a calibrated radiocarbon date
c14_date = Radiocarbon::C14Date.new(age = 10000, error = 30)
cal_date = c14_date.calibrate()

# Returns the probability distribution of a calibrated date over the full
# range of the calibration curve
cal_date.pdist

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

ruby-radiocarbon's People

Contributors

joeroe avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

ruby-radiocarbon's Issues

Add more calibration curves

  • IntCal20
  • SHCal20
  • Marine20
  • IntCal13
  • SHCal13
  • Marine13
  • IntCal09
  • Marine09
  • IntCal04
  • SHCal04
  • Marine04
  • IntCal98
  • Marine98

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.