Stats
Core module containing common statistics methods
Instance methods
mean(input : Array(Int | Float32 | Float64)) : Float64
Returns a Float64 averaged value from a given Array(Int | Float32 | Float64)
Stats.mean [1,2,3,4] # => 2.5
median(input : Array(Int | Float32 | Float64)) : Float64
Returns a Float64 median value from a given Array(Int | Float32 | Float64)
Stats.median [1,3,8,9] # => 5.5
mode(input : Array(Int | Float32 | Float64)) : Float64
Returns the most frequent value as a Float64 from a given Array(Int | Float32 | Float64)
Stats.mode [1,3,8,9,3] # => 3.0
TODO: Use generics to return value cast to original type TODO: Return multiple results on case of draw