Package org.openscience.cdk.formula
Class IsotopePatternSimilarity
- java.lang.Object
-
- org.openscience.cdk.formula.IsotopePatternSimilarity
-
-
Constructor Summary
Constructors Constructor Description IsotopePatternSimilarity()Constructor for the IsotopePatternSimilarity object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecompare(IsotopePattern isoto1, IsotopePattern isoto2)Compare the IMolecularFormula with a isotope abundance pattern.doublegetTolerance()Get the tolerance of the mass accuracy.voidseTolerance(double tolerance)Set the tolerance of the mass accuracy.
-
-
-
Method Detail
-
seTolerance
public void seTolerance(double tolerance)
Set the tolerance of the mass accuracy.- Parameters:
tolerance- The tolerance value
-
getTolerance
public double getTolerance()
Get the tolerance of the mass accuracy.- Returns:
- The tolerance value
-
compare
public double compare(IsotopePattern isoto1, IsotopePattern isoto2)
Compare the IMolecularFormula with a isotope abundance pattern.- Parameters:
isoto1- The Isotope pattern reference (predicted)isoto2- The Isotope pattern reference (detected)- Returns:
- The hit score of similarity
-
-