0.1
No release in over 3 years
Low commit activity in last 3 years
Statistics2 is a module that provides normal, Chi-square, t- and F- probability distributions for Ruby. It is a fork/continuation of Shin-ichiro Hara's original code. It provides a native, compiled extension and a pure Ruby implementation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.4.0
 Project Readme

Statistics2: Statistical Distributions for Ruby¶ ↑

Authors: Shin-ichiro HARA(sinara@blade.nagaokaut.ac.jp), Brendan Ribera (brendan.ribera@gmail.com)

REQUIREMENTS:¶ ↑

* ruby-1.8 or higher

INSTALL:¶ ↑

$ gem install statistics2

USAGE:¶ ↑

  • Example:

    require "statistics2"
    puts Statistics2.normaldist(0.27) #=> 0.60641987319804
    
  • If you don’t want to use the C extension:

    require "statistics2/no_ext"
    puts Statistics2.normaldist(0.27) #=> 0.606419873198039 (delta of 9.99200722162641e-16)
    

LICENSE:¶ ↑

Ruby’s (see www.ruby-lang.org/en/LICENSE.txt)