windowing data structure
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.yardopts
Gemfile
LICENSE.txt
README.md
Rakefile
time_trap.gemspec

README.md

TimeTrap

TimeTrap impelents a moving window data structure for keeping track of top-k things as they are created (eg. tweets, exceptions in a log file, or :Q

Installation

bundler gem 'time_trap'
raw gem gem install time_trap

Usage

tt = TimeTrap.new
tt.add("benedict")
tt.add("cumberbatch")