Sha256: ac26433c51280a009af3db58d1ed764fedbb548b9cb9779e6691a5c2c2e7b051

Contents?: true

Size: 133 Bytes

Versions: 6

Compression:

Stored size: 133 Bytes

Contents

## average plugin -- takatoh

def average(config, data)
  sum = data.inject(0.0){|a,b| a + b.to_f }
  return [ sum / data.size ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yapra-0.2.2 legacy_plugins/Filter/average.rb
yapra-0.2.0 legacy_plugins/Filter/average.rb
yapra-0.1.3 legacy_plugins/Filter/average.rb
yapra-0.1.0 legacy_plugins/Filter/average.rb
yapra-0.1.1 legacy_plugins/Filter/average.rb
yapra-0.1.2 legacy_plugins/Filter/average.rb