Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mikolalysenko/moving-median
- Owner: mikolalysenko
- License: mit
- Created: 2015-06-05T17:24:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T17:26:00.000Z (over 9 years ago)
- Last Synced: 2024-10-20T21:14:07.451Z (2 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 7
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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