Sha256: 200162aa26e766c18120a5aefc1e10b07f33b4f666680112da803c75f87a7b7f

Contents?: true

Size: 371 Bytes

Versions: 6

Compression:

Stored size: 371 Bytes

Contents

module Mspire
  class Peak
    # A point 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 Point < Array
      alias_method :x, :first
      alias_method :y, :last
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mspire-0.7.7 lib/mspire/peak/point.rb
mspire-0.7.6 lib/mspire/peak/point.rb
mspire-0.7.5 lib/mspire/peak/point.rb
mspire-0.7.4 lib/mspire/peak/point.rb
mspire-0.7.3 lib/mspire/peak/point.rb
mspire-0.7.2 lib/mspire/peak/point.rb