Sha256: 70db8be16218eea24be0c169e08f5e663d436e147d7637e430aa52232c765bfa
Contents?: true
Size: 424 Bytes
Versions: 32
Compression:
Stored size: 424 Bytes
Contents
module Mspire # A peak is typically a doublet: an x value and a y value. In a spectrum # this will be an m/z and intensity. In a chromatogram this will be a # retention time and an intensity. (This class can be subclassed if # desired) class Peak < Array alias_method :x, :first alias_method :y, :last def x=(val) self[0] = val end def y=(val) self[1] = val end end end
Version data entries
32 entries across 32 versions & 1 rubygems