Sha256: 459d404514790342b1d0a46b219c73e03868b783e020fcfbf1db65287b966634
Contents?: true
Size: 261 Bytes
Versions: 2
Compression:
Stored size: 261 Bytes
Contents
## Array#probability require 'facets/array/probability' Generates a hash mapping each unique element in the array to the relative frequency, i.e. the probability, of it's appearance. [:a, :b, :c, :c].probability.assert == {a: 0.25, b: 0.25, c: 0.50}
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | demo/core/array/probability |
facets-3.1.0 | demo/core/array/probability |