Sha256: 62671d8c9fca21a544396e8f8b22f0576d288bd297f976bdb9ccf7c4b5dfbbba
Contents?: true
Size: 776 Bytes
Versions: 2
Compression:
Stored size: 776 Bytes
Contents
require 'spec_helper' require 'mspire/isotope/distribution' describe 'Mspire::Isotope::Distribution class methods' do before do @data = [1.0, 0.08919230588715311, 0.017894161377222138, 0.0013573997600723345, 0.0001398330738144181] end it 'can calculate isotope distributions' do Mspire::Isotope::Distribution.calculate('C8O7', :max).should == @data end # no m/z values, just mass values it 'can calculate isotope distribution spectrum' do spec = Mspire::Isotope::Distribution.spectrum('C8O7', :max) spec.mzs.should == [207.96440233692, 208.97306725252, 209.98173216812, 210.99039708372, 211.99906199932002] spec.intensities.should == [1.0, 0.08919230588715311, 0.017894161377222138, 0.0013573997600723345, 0.0001398330738144181] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mspire-0.7.4 | spec/mspire/isotope/distribution_spec.rb |
mspire-0.7.3 | spec/mspire/isotope/distribution_spec.rb |