Skip to content
AsciiC6hem

Spectrum

Spectroscopic peak data with type, parameters, and peaks.

FieldTypeExample
typeString"nmr"
paramsHash{"type" => "1H", "solvent" => "CDCl3"}
peaksArray<Peak>See below
Spectrum::Peak = Struct.new(:position, :intensity,
:multiplicity, :assignment,
keyword_init: true)

See Spectroscopy syntax for input format.

Play