Class pmr.molecule.Stoichiometry
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.molecule.Stoichiometry
java.lang.Object
|
+----pmr.molecule.Stoichiometry
- public class Stoichiometry
- extends Object
A simple class for managing stoichiometry (i.e. elemental composition).
Probably will get mutated to something more carefully thought out later
- Author:
- (C) P. Murray-Rust, 1996
-
Stoichiometry(String)
- create from a formula of the form 'C2 H5 Cl'; must have spaces
-
getElementCount(String)
- returns the occurrence count of each element - if none, returns zero :-)
-
getElements()
- returns the elements
-
main(String[])
-
-
molecularWeight()
- gets molecular weight based on atomic weights (not isotope counts)
-
parentPeaks()
- gets parent peak spectrum.
Stoichiometry
public Stoichiometry(String formula)
- create from a formula of the form 'C2 H5 Cl'; must have spaces
getElements
public ChemicalElement[] getElements()
- returns the elements
getElementCount
public int getElementCount(String symbol)
- returns the occurrence count of each element - if none, returns zero :-)
molecularWeight
public double molecularWeight()
- gets molecular weight based on atomic weights (not isotope counts)
parentPeaks
public Bivariate parentPeaks()
- gets parent peak spectrum. This is a Bivariate in which the x values are
(integer) masses and the y-values are frequencies (normalised to 1.0)
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index