🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

datalib-sketch

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datalib-sketch

Probabilistic data structures for large or streaming data sets.

1.0.2
latest
Source
npm
Version published
Weekly downloads
2
-60%
Maintainers
1
Weekly downloads
 
Created
Source

datalib-sketch

Build Status npm version

Probabilistic data structures for large or streaming data sets.

This module exports the following sketches:

  • Bloom - Bloom filters test for (approximate) set membership.
  • CountMin - Count-min sketches estimate frequency counts for streaming values.
  • CountMinMean - Count-min-mean sketches modify the estimates of count-min sketches to account for bias.
  • NGram - The N-Gram sketch simply counts all n-character strings (default 2) in text data.
  • StreamSummary - The StreamSummary sketch tracks top-k frequent values.
  • TDigest - The T-digest estimates a variable-width histogram for quantile and cdf estimation.

Build Process

To use datalib-sketch in the browser, you need to build the datalib-sketch.js and datalib-sketch.min.js files. We assume that you have npm installed.

  • Run npm install in the datalib-sketch folder to install dependencies.
  • Run npm run build. This will invoke browserify to bundle the source files into datalib-sketch.js, and then uglify-js to create the minified datalib-sketch.min.js.

Keywords

data

FAQs

Package last updated on 16 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts