|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mobios.dist.MSMSMetric
public class MSMSMetric
MSMSMetric is an implementation of a fuzzy cosine distance metric for comparing tandem spectra
signatures. Within a given tolerance, elements of the TandemSpectra
are equal.
Constructor Summary | |
---|---|
MSMSMetric()
Default constructor provides default values for min, max, step, and tolerance: min = 0; max = 0; step = 0; tol = MSMSConstants.MS_TOLERANCE |
|
MSMSMetric(int min,
int max,
double step,
double tol)
|
Method Summary | |
---|---|
double |
getDistance(IndexObject v1,
IndexObject v2)
Computes the distance between two objects. |
double |
getDistance(TandemSpectra v1,
TandemSpectra v2)
Computes the distance between two TandemSpectra es. |
String |
printDistance(TandemSpectra k1,
TandemSpectra k2)
Convert information of the instance into a String that contains the number of
dimension and meaning for each dimension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MSMSMetric(int min, int max, double step, double tol)
min
- max
- step
- tol
- public MSMSMetric()
Method Detail |
---|
public double getDistance(IndexObject v1, IndexObject v2)
Metric
getDistance
in interface Metric
v1
- the first IndexObject
to compute distance onv2
- the second IndexObject
to compute distance on
public double getDistance(TandemSpectra v1, TandemSpectra v2)
TandemSpectra
es.
v1
- the first TandemSpectra
to compute distance onv2
- the second TandemSpectra
to compute distance on
TandemSpectra
espublic String printDistance(TandemSpectra k1, TandemSpectra k2)
String
that contains the number of
dimension and meaning for each dimension
|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |