Sha256: 723c3f77fbaa3bc0f3a3eb924850382f56225debe7df741cd9e8b51cc9e63489
Contents?: true
Size: 291 Bytes
Versions: 11
Compression:
Stored size: 291 Bytes
Contents
# Proportions ```ruby collection = [1, 1, 2, 3, 10] results = { 1 => 0.4, 2 => 0.2, 3 => 0.2, 10 => 0.2 } klass = Lite::Statistics::Descriptive.new(collection) klass.proportions # - or - Lite::Statistics::Descriptive.proportions(collection) # - or - collection.proportions ```
Version data entries
11 entries across 11 versions & 1 rubygems