Method: Statsample::StratifiedSample.calculate_n_total
- Defined in:
- lib/statsample/multiset.rb
permalink .calculate_n_total(es) ⇒ Object
[View source] [View on GitHub]
120 121 122 |
# File 'lib/statsample/multiset.rb', line 120 def calculate_n_total(es) es.inject(0) {|a,h| a+h['N'] } end |