public class PeakSet extends TreeSet<Peak>
Constructor and Description |
---|
PeakSet() |
PeakSet(SortedSet<Peak> peakList) |
Modifier and Type | Method and Description |
---|---|
static PeakSet |
getInstance(double[] mzArray,
double[] intensityArray)
Translate the m/z Array and intensity Array into a set of peaks.
|
double[] |
getIntensityArray() |
Peak |
getMaxIntensityPeak() |
double[] |
getMzArray() |
PeakSet |
getTopIntensityPeak(int top) |
List<PeakSet> |
splitWindow(int splitSize)
split the whole peaks into list of subsets.
|
PeakSet |
subSet(double mz,
double interval)
Create a subset of peak set.
|
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, subSet, subSet, tailSet, tailSet
equals, hashCode, removeAll
containsAll, retainAll, toArray, toArray, toString
public static PeakSet getInstance(double[] mzArray, double[] intensityArray)
Notice: the length of two array should be equal.
mzArray
- if null, return a empty peak set.intensityArray
- if null, return a empty peak set.public List<PeakSet> splitWindow(int splitSize)
public PeakSet subSet(double mz, double interval)
mz
- should be in the range of peak set. that is, [first_peak.m/z, last_peak.m/z]. Otherwise,
return empty peak set.interval
- should great than 0. Otherwise, return empty peak set.public double[] getMzArray()
public double[] getIntensityArray()
public Peak getMaxIntensityPeak()
public PeakSet getTopIntensityPeak(int top)
Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.