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

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


          .getIntensity();
      bigSpectrum[i][Similarity.FRAGMENT_REL_POSITION] = p[i]
          .getIntensity() / maxAbundance * 100;
    }

    Similarity similarity = getFameSpectrum(name).getSimilarity();
    double sim;

    synchronized (similarity) {
      similarity.setUnknownSpectra(bigSpectrum);
      sim = similarity.calculateSimimlarity();
    }

    return sim;
  }
View Full Code Here


      this.name = name;
      this.retentionTime = retentionTime;
      this.retentionIndex = retentionIndex;
      this.spectrum = parseSpectrumData(spectrum);

      similarity = new Similarity();
      similarity.setLibrarySpectra(spectrum);
    }
View Full Code Here

TOP

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

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.