Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/ms/spectrum/compare.rb

Direct Known Subclasses

Ms::Msrun::Index

Instance Method Summary collapse

Instance Method Details

#sumObject



12
13
14
# File 'lib/ms/spectrum/compare.rb', line 12

def sum
  self.inject(0.0) {|_sum, v| _sum += v }
end