Sha256: ef1275cfe8ffec7692b45b1f076672a0fcd6a7bdb572d3126c15885c9e9a48e2
Contents?: true
Size: 231 Bytes
Versions: 28
Compression:
Stored size: 231 Bytes
Contents
module Shipit module Stat extend self def p90(numbers) percentile(90, numbers) end def percentile(percentile, numbers) numbers.sort[((numbers.size - 1) * percentile / 100.0).floor] end end end
Version data entries
28 entries across 28 versions & 1 rubygems