rheineke / pymedian

Optimal running median data structure in Python
MIT License
0 stars 0 forks source link

ENH: Ignore null values #4

Closed rheineke closed 7 years ago

rheineke commented 7 years ago

Null values (numpy.nan, for example) are not handled correctly in the min- and max-heaps since they always compare false to other values. There are two options for handling them: