Class: DescriptiveStatistics::Stats

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/descriptive_statistics/stats.rb

Instance Method Summary collapse

Constructor Details

#initialize(collection) ⇒ Stats

Returns a new instance of Stats.



12
13
14
# File 'lib/descriptive_statistics/stats.rb', line 12

def initialize(collection)
  @collection = collection.clone.extend(DescriptiveStatistics)
end