Quickly compress a non-overlapping increasing sequence. This does not normalize the sequence, but can be useful in some situations. Based on the algorithm in:
var compress =var seq = 1 2console
npm install robust-compress
Approximately compress a non-overlapping increasing floating point expansion in place.
seqis a robust sequence
Note This method updates
seq in place
(c) 2014 Mikola Lysenko. MIT License