Package edu.ucdavis.genomics.metabolomics.util.math

Examples of edu.ucdavis.genomics.metabolomics.util.math.CombinedRegression


   *
   * @param m
   * @return
   */
  private Range getRIWindow(MassCandidate m) {
    CombinedRegression fit = m.getFit();
    double rt = m.getOriginalRetentionTime();

    return new Range(fit.getY(rt - timeWindow), fit.getY(rt + timeWindow));
  }
View Full Code Here


    logger.info(dataFile + "");
    logger.info(fameTimes + "");
    logger.info(fameNames + "");

    // Apply linear/polynomial fit
    CombinedRegression fit = new CombinedRegression(5);
    fit.setData(Doubles.toArray(fameTimes), Doubles.toArray(fameIndices));

    // Add calculated retention index to each mass spectrum
    for (int scanNumber : correctedDataFile.getScanNumbers(1)) {
      CorrectedSpectrum s = (CorrectedSpectrum) correctedDataFile
          .getScan(scanNumber);
      s.setRetentionIndex((int) fit.getY(s.getRetentionTime()));
      s.setRetentionCorrection(fit, results);
    }
  }
View Full Code Here

    logger.info(dataFile + "");
    logger.info(fameTimes + "");
    logger.info(fameNames + "");

    // Apply linear/polynomial fit
    CombinedRegression fit = new CombinedRegression(5);
    fit.setData(Doubles.toArray(fameTimes), Doubles.toArray(fameIndices));

    // Add calculated retention index to each mass spectrum
    for (int scanNumber : correctedDataFile.getScanNumbers(1)) {
      CorrectedSpectrum s = (CorrectedSpectrum) correctedDataFile
          .getScan(scanNumber);
      s.setRetentionIndex((int) fit.getY(s.getRetentionTime()));
      s.setRetentionCorrection(fit, results);
    }
  }
View Full Code Here

TOP

Related Classes of edu.ucdavis.genomics.metabolomics.util.math.CombinedRegression

Copyright © 2018 www.massapicom. 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.