public class ConsensusPeakSink<A extends LibPeakAnnotation> extends Object implements PeakSink<A>
| Constructor and Description |
|---|
ConsensusPeakSink(ConsensusSpectrum<A> consensus,
double peakFraction,
int minPeakCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Called after a PeakList is processed
|
void |
processPeak(double mz,
double intensity,
List<A> annotations)
Process the peak
|
void |
start(int size)
Called before a new PeakList is processed.
|
public ConsensusPeakSink(ConsensusSpectrum<A> consensus, double peakFraction, int minPeakCount)
public void start(int size)
PeakSinkstart in interface PeakSink<A extends LibPeakAnnotation>size - the number of peaks that will be processed.public void processPeak(double mz,
double intensity,
List<A> annotations)
PeakSinkprocessPeak in interface PeakSink<A extends LibPeakAnnotation>mz - the peak's m/zintensity - the peak's intensityannotations - the peak's annotationspublic void end()
PeakSinkend in interface PeakSink<A extends LibPeakAnnotation>Copyright © 2016. All Rights Reserved.