public class DpSimFunc<X extends PeakAnnotation,Y extends PeakAnnotation> extends AbstractSimFunc<X,Y>
| Constructor and Description |
|---|
DpSimFunc(int minPeakCount,
PeakListAligner<X,Y> peakListAligner,
PeakPairProcessor<X,Y>... chain)
Construct a NdpSimFunc that uses the supplied PeakListAligner and PeakPairProcessor chain to process
and align the peak lists.
|
DpSimFunc(int minPeakCount,
Tolerance tolerance)
Construct a NdpSimFunc that uses the default peak list aligner.
|
| 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 xIntensity,
double yIntensity,
List<X> xAnnotations,
List<Y> yAnnotations)
Pushes the next peak pair to this sink
|
begin, end, vectorizepublic DpSimFunc(int minPeakCount,
Tolerance tolerance)
minPeakCount - the minimum number of peaks that are required in order to calculate the similaritytolerance - the tolerance to use when aligning the two PeakListspublic DpSimFunc(int minPeakCount,
PeakListAligner<X,Y> peakListAligner,
PeakPairProcessor<X,Y>... chain)
minPeakCount - the minimum number of peaks that are required in order to calculate the ndppeakListAligner - the object that is used to allign the PeakList pairschain - PeakPairProcessor chain that is used to pre-process the aligned peaks before calculating the similaritypublic 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 xIntensity,
double yIntensity,
List<X> xAnnotations,
List<Y> yAnnotations)
PeakPairSinkcentroid - the m/zxIntensity - the intensity of the first peakyIntensity - 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.