Class: Mspire::Peak

Inherits:
Array
  • Object
show all
Defined in:
lib/mspire/peak.rb

Overview

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)

Instance Method Summary (collapse)

Methods inherited from Array

#in_groups

Instance Method Details

- (Object) x=(val)



11
12
13
# File 'lib/mspire/peak.rb', line 11

def x=(val)
  self[0] = val
end

- (Object) y=(val)



15
16
17
# File 'lib/mspire/peak.rb', line 15

def y=(val)
  self[1] = val
end