Sha256: b8ab01ad4d5808d238e6b9f6186e20ad5cd5a71236d003dee23ff1b5992e6463

Contents?: true

Size: 367 Bytes

Versions: 13

Compression:

Stored size: 367 Bytes

Contents

module MS
  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

13 entries across 13 versions & 1 rubygems

Version Path
mspire-0.6.26 lib/ms/peak/point.rb
mspire-0.6.25 lib/ms/peak/point.rb
mspire-0.6.24 lib/ms/peak/point.rb
mspire-0.6.22 lib/ms/peak/point.rb
mspire-0.6.21 lib/ms/peak/point.rb
mspire-0.6.20 lib/ms/peak/point.rb
mspire-0.6.19 lib/ms/peak/point.rb
mspire-0.6.18 lib/ms/peak/point.rb
mspire-0.6.12 lib/ms/peak/point.rb
mspire-0.6.11 lib/ms/peak/point.rb
mspire-0.6.9 lib/ms/peak/point.rb
mspire-0.6.7 lib/ms/peak/point.rb
mspire-0.6.6 lib/ms/peak/point.rb