Package org.openscience.cdk.formula
Class IsotopePatternSimilarity
java.lang.Object
org.openscience.cdk.formula.IsotopePatternSimilarity
This class gives a score hit of similarity between two different
isotope abundance pattern.
- Author:
- Miguel Rojas Cherto
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the IsotopePatternSimilarity object. -
Method Summary
Modifier and TypeMethodDescriptiondoublecompare(IsotopePattern isoto1, IsotopePattern isoto2) Compare the IMolecularFormula with a isotope abundance pattern.doubleGet the tolerance of the mass accuracy.voidseTolerance(double tolerance) Set the tolerance of the mass accuracy.
-
Constructor Details
-
IsotopePatternSimilarity
public IsotopePatternSimilarity()Constructor for the IsotopePatternSimilarity object.
-
-
Method Details
-
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
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
-