var burst = require('kleinberg-burst');
var offsets = [1, 2, 3, 10, 11, 12, 13, 14, 20, 25, 30];
burst(offsets)
var burst = require('kleinberg-burst')
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.
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
$ npm i kleinberg-burst
- Original paper is Kleinberg, J. (2002) Bursty and Hierarchical Structure in Streams.
- Greatly owed implementation and reference test data to R implementation.
MIT