Sha256: 6dc645ee4c1482fc6485a8db595b1a1b327de95df149f7b36d85e6126928367b

Contents?: true

Size: 199 Bytes

Versions: 4

Compression:

Stored size: 199 Bytes

Contents

#!/usr/bin/env ruby

require "pione"

# info
means = Pione.val "$I[1]"

# calc & output
totals = means.split(":").map{|filename| File.read(filename).chomp.to_f}
print totals.reduce(:+) / totals.size

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pione-0.3.0 example/ScoreAggregation/bin/total-mean.rb
pione-0.2.2 example/ScoreAggregation/bin/total-mean.rb
pione-0.2.1 example/ScoreAggregation/bin/total-mean.rb
pione-0.2.0 example/ScoreAggregation/bin/total-mean.rb