Sha256: c17f390fce34634c037a87014841948386c68c58641a558513cfd4e7cfedf155

Contents?: true

Size: 173 Bytes

Versions: 3

Compression:

Stored size: 173 Bytes

Contents

module Slate
  module Calculation
    class Mean < Base
      protected

      def map(points)
        points.inject(0.0, :+) / points.size.to_f
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slate-1.0.0 lib/slate/calculation/mean.rb
slate-0.2.1 lib/slate/calculation/mean.rb
slate-0.2.0 lib/slate/calculation/mean.rb