SliceSparseMatrix { public Triplet findNextMaxIntensity() { Triplet tripletObject = null; for (int i = maxIntensityIndex; i < sortListAccordingToIntensity.size(); i++) { if (sortListAccordingToIntensity.get(i).removed == 0) { tripletObject = sortListAccordingToIntensity.get(i); maxIntensityIndex = i + 1; break; } } return tripletObject; } SliceSparseMatrix(RawDataFile rawFile);  SliceSparseMatrix(RawDataFile rawFile, Predicate<MsScan> msScanPredicate); List<Triplet> getHorizontalSlice(double mz, int lowerScanBound, int upperScanBound); List<Triplet> getHorizontalSlice(int roundedMZ, int lowerScanBound, int upperScanBound); List<VerticalSliceDataPoint> getVerticalSlice(int scanNumber); Triplet findNextMaxIntensity(); List<ContinuousWaveletTransform.DataPoint> getCWTDataPoint(List<Triplet> slice); List<Triplet> removeDataPoints(int roundedmz, int lowerScanBound, int upperScanBound); List<Triplet> restoreDataPoints(int roundedmz, int lowerScanBound, int upperScanBound); int roundMZ(double mz); void setMaxIntensityIndexZero(); int getSizeOfRawDataFile(); float[] getRetentionTimeArray(int lowerScanBound, int upperScanbound); float[] getIntensities(GoodPeakInfo peak); double getRetentionTime(int scanNumber); float getFinishedPercent(Triplet maxIntensityTriplet); double numOfScans(); final List<Integer> mzValues; }
@Test public void testFindNextMaxIntensity() throws MSDKException, IOException { Assert.assertEquals(9695762.0, objSliceSparseMatrix.findNextMaxIntensity().intensity, 0); }