Class: Mspire::Quant::SpectralCounts::Counts

Inherits:
Struct
  • Object
show all
Defined in:
lib/mspire/quant/spectral_counts.rb,
lib/mspire/quant/spectral_counts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Counts

Returns a new instance of Counts.



9
10
11
12
13
# File 'lib/mspire/quant/spectral_counts.rb', line 9

def initialize(*args)
  super(*args)
  # default is zero counts
  self[0] ||= 0.0 ; self[1] ||= 0.0 ; self[2] ||= 0.0
end

Instance Attribute Details

#aaseqObject

Returns the value of attribute aaseq

Returns:

  • (Object)

    the current value of aaseq



7
8
9
# File 'lib/mspire/quant/spectral_counts.rb', line 7

def aaseq
  @aaseq
end

#aaseqchargeObject

Returns the value of attribute aaseqcharge

Returns:

  • (Object)

    the current value of aaseqcharge



7
8
9
# File 'lib/mspire/quant/spectral_counts.rb', line 7

def aaseqcharge
  @aaseqcharge
end

#spectralObject

Returns the value of attribute spectral

Returns:

  • (Object)

    the current value of spectral



7
8
9
# File 'lib/mspire/quant/spectral_counts.rb', line 7

def spectral
  @spectral
end