2
from libcpp cimport bool
3
from libcpp.vector cimport vector as libcpp_vector
4
from IMSIsotopeDistribution cimport *
6
cdef extern from "<OpenMS/CHEMISTRY/MASSDECOMPOSITION/IMS/Weights.h>" namespace "OpenMS::ims::Weights":
8
ctypedef double alphabet_mass_type
9
ctypedef long unsigned int weight_type
10
ctypedef libcpp_vector[weight_type] weights_type
12
cdef extern from "<OpenMS/CHEMISTRY/MASSDECOMPOSITION/IMS/Weights.h>" namespace "OpenMS::ims":
14
cdef cppclass IMSWeights "OpenMS::ims::Weights":
15
IMSWeights() nogil except +
16
IMSWeights(IMSWeights) nogil except +
17
# IMSWeights(alphabet_masses_type & masses, alphabet_mass_type precision) nogil except +
18
size_type size() nogil except +
19
weight_type getWeight(size_type i) nogil except +
20
void setPrecision(alphabet_mass_type precision) nogil except +
21
alphabet_mass_type getPrecision() nogil except +
22
# weight_type operator[](size_type i) nogil except +
23
weight_type back() nogil except +
24
alphabet_mass_type getAlphabetMass(size_type i) nogil except +
25
alphabet_mass_type getParentMass(libcpp_vector[ unsigned int ] & decomposition) nogil except +
26
void swap(size_type index1, size_type index2) nogil except +
27
bool divideByGCD() nogil except +
28
alphabet_mass_type getMinRoundingError() nogil except +
29
alphabet_mass_type getMaxRoundingError() nogil except +