public abstract class MassCalculator extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
PROTON_MASS |
| Constructor and Description |
|---|
MassCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static double |
calcIsotopeDelta(Composition composition) |
static double |
calculateAverageMass(Atom atom)
Calculates average mass of Atom
|
static double |
calculateAverageMass(Composition composition)
Calculates the sum of the average mass of each Atom in this
Composition.
|
abstract double |
calculateMz(double molecularWeight,
int charge,
IonType ionType)
Calculate the m/z for the given neutral molecular weight.
|
abstract double |
calculateNeutralMolecularMass(double mz,
int charge)
Calculate the neutral molecular weight given a m/z, charge and mass of the charge carrying particle.
|
abstract double |
calculateNeutralMolecularMass(Peak peak) |
abstract double |
getDeltaMass(IonType ionType) |
public abstract double getDeltaMass(IonType ionType)
public abstract double calculateNeutralMolecularMass(double mz,
int charge)
mz - the m/zcharge - the chargepublic abstract double calculateNeutralMolecularMass(Peak peak)
public abstract double calculateMz(double molecularWeight,
int charge,
IonType ionType)
molecularWeight - the neutral molecular weightcharge - the chargepublic static double calcIsotopeDelta(Composition composition)
public static double calculateAverageMass(Atom atom)
public static double calculateAverageMass(Composition composition)
Copyright © 2016. All Rights Reserved.