You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The median of an empty float sequence is nan. The median of an empty integer or decimal sequence causes an error with an unhelpful error message.
The error message for an empty non-float sequence should make it clear it's an FSharp.Stats problem to make it easier to debug.
#r "nuget: FSharp.Stats, 0.5.1-preview.2"openFSharp.Statsletys:float []=[||]
median ys
>valys:float array =[||]>valit:float =nanletxs:decimal []=[||]
median xs
> System.DivideByZeroException: Attempted to divide by zero.
at System.Decimal.DecCalc.VarDecDiv(DecCalc& d1, DecCalc& d2)
at System.Decimal.op_Division(Decimal d1, Decimal d2)
Describe the solution you'd like
An error message such as "FSharp.Stats median is undefined for an empty decimal sequence"
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The median of an empty float sequence is nan. The median of an empty integer or decimal sequence causes an error with an unhelpful error message.
The error message for an empty non-float sequence should make it clear it's an FSharp.Stats problem to make it easier to debug.
Describe the solution you'd like
An error message such as "FSharp.Stats median is undefined for an empty decimal sequence"
The text was updated successfully, but these errors were encountered: