Closed zhangyi-hu closed 3 years ago
(Sorry for the slow response. it appears I stopped receiving github notifications.)
I'll fix this soon.
Any thoughts on that ? Throwing an exception ?
Maybe we could also implement a nanmedian
?
yeah i'm just gonna throw. easiest thing to do.
sorry for being so slow.
a nanmedian would be nice too, i guess
Minimum reproducing example:
val a = DenseVector(1.0, 2.0, 3.0, Double.NaN) val b = stats.median(a)
bug introduced in commit: e234a81596f45d89f072f41f4ca96cbb0ace0787
relevant code:
Please either throw (like Apache Common Maths), or ignore NaN and log a warning.