Socket
Socket
Sign inDemoInstall

kleinberg-burst

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kleinberg-burst

JavaScript implementation of Kleinbergs's burst detection


Version published
Weekly downloads
1
Maintainers
1
Install size
6.12 kB
Created
Weekly downloads
 

Readme

Source

node-kleinberg-burst

Example

var burst = require('kleinberg-burst');
var offsets = [1, 2, 3, 10, 11, 12, 13 14, 20, 25, 30];
burst(offsets)

Methods

var burst = require('kleinberg-burst')

var levels = burst(offsets, opts);

offset is an array of occurrence time offsets. The function returns an array whose elements are the burst levels at the time of each occurrence.

Options

opts.s = 2 - the base of the exponent used to determine event frequencies in a given state

opts.gamma = 1 - a coefficient modifies the cost of a transition to a higher state

Install

$ npm i kleinberg-burst

See Also

  • Original paper is Kleinberg, J. (2002) Bursty and Hierarchical Structure in Streams.
  • Greatly owed implementation and reference test data to R implementation.

License

MIT

Keywords

FAQs

Last updated on 22 Apr 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc