public abstract class AbstractSimFunc<X extends PeakAnnotation,Y extends PeakAnnotation> extends Object implements SimFunc<X,Y>, PeakPairSink<X,Y>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSimFunc(PeakListAligner<X,Y> peakListAligner,
PeakPairProcessor<X,Y>... chain)
Creates a AbstractSimFunc that uses the supplied PeakListAligner and PeakPairProcessor chain.
|
protected |
AbstractSimFunc(Tolerance tolerance)
Creates a AbstractSimFunc that uses a DefaultPeakListAligner and clear processor chain.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin(PeakList<X> xPeakList,
PeakList<Y> yPeakList)
Called before a new PeakList pair is processed
|
void |
end()
Called when all the peak pairs in the PeakList pair have been processed
|
void |
vectorize(PeakList<X> peakListX,
PeakList<Y> peakListY)
Aligns the two PeakLists and then processes the aligned peak tupplets using the
PeakPairProcessor chain.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalcSimilarity, getBestScore, getTotalPeakCount, getWorstScoreprocessPeakPairprotected AbstractSimFunc(Tolerance tolerance)
tolerance - the tolerance to use when aligning the two PeakListsprotected AbstractSimFunc(PeakListAligner<X,Y> peakListAligner, PeakPairProcessor<X,Y>... chain)
peakListAligner - the object that is used to align the PeakList pairschain - PeakPairProcessor chain that is used to pre-process the aligned peaks before calculating the similaritypublic void vectorize(PeakList<X> peakListX, PeakList<Y> peakListY)
peakListX - the first peak listpeakListY - the second peak listpublic void begin(PeakList<X> xPeakList, PeakList<Y> yPeakList)
PeakPairSinkbegin in interface PeakPairSink<X extends PeakAnnotation,Y extends PeakAnnotation>xPeakList - the first member of the peak pair that is going to be processedyPeakList - the second member of the peak pair that is going to be processedpublic void end()
PeakPairSinkend in interface PeakPairSink<X extends PeakAnnotation,Y extends PeakAnnotation>Copyright © 2016. All Rights Reserved.