Project

quantile

0.16
No commit activity in last 3 years
No release in over 3 years
Graham Cormode and S. Muthukrishnan's Effective Computation of Biased Quantiles over Data Streams in ICDE’05
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Quantile

Ruby Implementation of Graham Cormode and S. Muthukrishnan's Effective Computation of Biased Quantiles over Data Streams in ICDE’05.

Installation

gem install quantile

Usage

require 'quantile'

estimator = Quantile::Estimator.new

# Record any amount of Numeric values
10_000.times do
  estimator.observe(rand)
end

# Retrieve the value of a given quantile
estimator.query(0.5)

# Retrieve the number of observations
estimator.observations

# Get the sum of all observed values.
estimator.sum

Tests Build Status

# Install dependencies
gem install bundler
bundle install

# Run tests
rake test

Resources

Author

Matt T. Proud <matt.proud@gmail.com>