Examples of ElementRuleSorterByMass


Examples of net.sf.mzmine.modules.peaklistmethods.identification.formulaprediction.elements.ElementRuleSorterByMass

  public FormulaGenerator(Range massRange, ElementRule selectedElements[]) {

    // Sort the elements by mass in ascending order. That greatly speeds up
    // the search.
    this.elementRules = selectedElements;
    Arrays.sort(this.elementRules, new ElementRuleSorterByMass());

    // Adjust the maximum numbers according to the mass we are
    // searching
    for (ElementRule rule : selectedElements) {
      int maxCountAccordingToMass = (int) (massRange.getMax() / rule
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.