Description

Linear Counting for Dlang

Package Information

Version0.1.0 (2017-Mar-29)
Repository https://github.com/tamediadigital/lincount
LicenseBSL-1.0
CopyrightCopyright © 2016 Tamedia AG
AuthorsIlya Yaroshenko
Registered byIlya Yaroshenko
Dependencies

mir-algorithm

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

Probabilistic Linear Counting for Dlang

auto counter = LPCounter(32); // 32 kilobytes for internal BitArray

/// loop
  counter.put(anArrayOrString);
  // or
  //counter.put(anUint);
  //counter.put(anUlong); // not that the 3 and 3L is different entities!
  //counter.put(anUUID);

size_t count = counter.count;

Licence:

www.boost.org/LICENSE10.txt, Boost License 1.0

Available versions

0.1.0 0.0.3 0.0.2 0.0.1 ~master ~travis ~feature/expose_count ~feature/example