Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikolalysenko/moving-median

Computes a moving median from a stream of numerical values
https://github.com/mikolalysenko/moving-median

Last synced: about 2 months ago
JSON representation

Computes a moving median from a stream of numerical values

Awesome Lists containing this project

README

        

moving-median
=============
Computes a running median from a stream of values. Useful for filtering noisy signals.

# Example

```javascript
var createMedianFilter = require('moving-median')
var median = createMedianFilter(5)

var sequence = [1, 2, 5, 2, 1, 1, 1, 2, 1000, 2, NaN, 3, NaN, 3, 3]

for(var i=0; i