Skip to content

hitsujiwool/node-kleinberg-burst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

License

MIT

About

JavaScript implementation of Kleinbergs's burst detection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published