Skip to content

A Python implementation of the binmedian algorithm.

Notifications You must be signed in to change notification settings

riccardo92/binmedian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

binmedian

A Python implementation of the binmedian algorithm originally written in C (and Fortran) that can be found on http://www.stat.cmu.edu/~ryantibs/median/binmedian.c.

Just like the original C code, this code only contains an implementation for odd length x but will later be updated to work on even length x as well.

It's currently much slower then, for instance, the numpy median function but it has the advantage of having O(1) memory usage and not requiring a full sort of the data. Can also be combined with the numpy.memmap function to avoid having to load the array in memory.

About

A Python implementation of the binmedian algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages