IMSWeights
- class pyopenms.IMSWeights
Bases:
object
Cython implementation of _IMSWeights
Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS::ims::Weights_1_1IMSWeights.html
- __init__()
Cython signature: void IMSWeights()
Cython signature: void IMSWeights(IMSWeights)
Methods
Cython signature: void IMSWeights()
Cython signature: unsigned long int back() Gets a last weight
Cython signature: bool divideByGCD() Divides the integer weights by their gcd.
Cython signature: double getAlphabetMass(int i) Gets an original (double) alphabet mass by index
Cython signature: double getMaxRoundingError()
Cython signature: double getMinRoundingError()
Cython signature: double getParentMass(libcpp_vector[unsigned int] & decomposition) Returns a parent mass for a given decomposition
Cython signature: double getPrecision() Gets precision.
Cython signature: unsigned long int getWeight(int i) Gets a scaled integer weight by index
Cython signature: void setPrecision(double precision) Sets a new precision to scale double values to integer
Cython signature: int size() Gets size of a set of weights
Cython signature: void swap(int index1, int index2) Exchanges weight and mass at index1 with weight and mass at index2
- back()
Cython signature: unsigned long int back() Gets a last weight
- divideByGCD()
Cython signature: bool divideByGCD() Divides the integer weights by their gcd. The precision is also adjusted
- getAlphabetMass()
Cython signature: double getAlphabetMass(int i) Gets an original (double) alphabet mass by index
- getMaxRoundingError()
Cython signature: double getMaxRoundingError()
- getMinRoundingError()
Cython signature: double getMinRoundingError()
- getParentMass()
Cython signature: double getParentMass(libcpp_vector[unsigned int] & decomposition) Returns a parent mass for a given decomposition
- getPrecision()
Cython signature: double getPrecision() Gets precision.
- getWeight()
Cython signature: unsigned long int getWeight(int i) Gets a scaled integer weight by index
- setPrecision()
Cython signature: void setPrecision(double precision) Sets a new precision to scale double values to integer
- size()
Cython signature: int size() Gets size of a set of weights
- swap()
Cython signature: void swap(int index1, int index2) Exchanges weight and mass at index1 with weight and mass at index2