JuliaMath / NaNMath.jl

Julia math built-ins which return NaN and accumulator functions which ignore NaN
Other
52 stars 26 forks source link

Add median function implementation #41

Closed mzgubic closed 3 years ago

mzgubic commented 4 years ago

The suggested implementation drops the NaNs and takes the median of the rest of the elements.

If the array is NaN-only or empty, the function returns NaN.

Closes #40 .