Package org.bmdrc.mass

Examples of org.bmdrc.mass.PeakList.addPeak()


        PeakList thePeakList = new PeakList();

        while ((theFileString = theFileReader.readLine()) != null) {
            String[] theSplitedString = theFileString.split(theColumnSeparator);

            thePeakList.addPeak(new PeakUnit(Double.parseDouble(theSplitedString[this.MW_INDEX]), Double.parseDouble(theSplitedString[this.INTENSITY_INDEX]), theInputFile.toString()));
        }

        return thePeakList;
    }
View Full Code Here


    private PeakList __getCommonPeakList(PeakList thePeakList, int theStartIndex, int theNumberOfFile) {
        PeakList theCommonPeakList = new PeakList();

        for (int pi = theStartIndex, pEnd = theStartIndex + theNumberOfFile; pi < pEnd; pi++) {
            theCommonPeakList.addPeak(thePeakList.get(pi));
        }

        return theCommonPeakList;
    }
View Full Code Here

        PeakList thePeakList = new PeakList();

        while ((theFileString = theFileReader.readLine()) != null) {
            String[] theSplitedString = theFileString.split(theColumnSeparator);

            thePeakList.addPeak(new PeakUnit(Double.parseDouble(theSplitedString[this.MW_INDEX]), Double.parseDouble(theSplitedString[this.INTENSITY_INDEX]), theInputFile.toString()));
        }

        return thePeakList;
    }
View Full Code Here

    private PeakList __getCommonPeakList(PeakList thePeakList, int theStartIndex, int theNumberOfFile) {
        PeakList theCommonPeakList = new PeakList();

        for (int pi = theStartIndex, pEnd = theStartIndex + theNumberOfFile; pi < pEnd; pi++) {
            theCommonPeakList.addPeak(thePeakList.get(pi));
        }

        return theCommonPeakList;
    }
View Full Code Here

    public PeakList calculateNovelPeakList() {
        PeakList theNovelPeakList = new PeakList();
       
       for(PeakUnit theTestPeak : this.getTestPeakList().getPeakList()) {
           if(!this.getOriginalPeakList().containsWeight(theTestPeak)) {
               theNovelPeakList.addPeak(theTestPeak);
           }
       }
       
        return theNovelPeakList;
    }
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.