Method: Statsample::DominanceAnalysis#get_averages
- Defined in:
- lib/statsample/dominanceanalysis.rb
#get_averages(averages) ⇒ Object
For a hash with arrays of numbers as values Returns a hash with same keys and value as the mean of values of original hash
279 280 281 282 283 |
# File 'lib/statsample/dominanceanalysis.rb', line 279 def get_averages(averages) out={} averages.each{ |key,val| out[key] = Daru::Vector.new(val).mean } out end |