public class PspcSimFunc<X extends PeakAnnotation,Y extends PeakAnnotation> extends AbstractSimFunc<X,Y>
| Constructor and Description |
|---|
PspcSimFunc(int minPeakCount,
PeakListAligner<X,Y> peakListAligner,
PeakPairProcessor<X,Y>... chain) |
PspcSimFunc(int minPeakCount,
Tolerance tolerance) |
| Modifier and Type | Method and Description |
|---|---|
double |
calcSimilarity(PeakList<X> plX,
PeakList<Y> plY)
Calculate the similarity score of the two vectors.
|
double |
getBestScore()
Return the best score that can be returned by calls to calcSimilarity.
|
int |
getTotalPeakCount()
Returns the total number peaks in plX and plY from the last call to calcSimilarity
|
double |
getWorstScore()
Return the worst the score that can be returned by calls to calcSimilarity.
|
void |
processPeakPair(double centroid,
double x,
double y,
List<X> xAnnotations,
List<Y> yAnnotations)
Pushes the next peak pair to this sink
|
begin, end, vectorizepublic PspcSimFunc(int minPeakCount,
Tolerance tolerance)
public PspcSimFunc(int minPeakCount,
PeakListAligner<X,Y> peakListAligner,
PeakPairProcessor<X,Y>... chain)
public double calcSimilarity(PeakList<X> plX, PeakList<Y> plY)
SimFuncplX - the fist peak listplY - the second peak listpublic int getTotalPeakCount()
SimFuncpublic void processPeakPair(double centroid,
double x,
double y,
List<X> xAnnotations,
List<Y> yAnnotations)
PeakPairSinkcentroid - the m/zx - the intensity of the first peaky - the intensity of the second peakxAnnotations - the annotations for the first peakyAnnotations - the annotations for the second peakpublic double getBestScore()
SimFuncpublic double getWorstScore()
SimFuncCopyright © 2016. All Rights Reserved.