mobios.dist
Class MSMetric
java.lang.Object
mobios.dist.MSMetric
- All Implemented Interfaces:
- Serializable, Metric
public class MSMetric
- extends Object
- implements Metric
MSDataMetric implements the Metric
interface.
- Version:
- 2004.03.25
- Author:
- Smriti Ramakrishnan
- See Also:
- Serialized Form
Constructor Summary |
MSMetric()
default constructor - is a temporary solution providing default values for
min, max, step, tolerance |
MSMetric(int min,
int max,
double step,
double tol)
|
MSMetric
public MSMetric(int min,
int max,
double step,
double tol)
MSMetric
public MSMetric()
- default constructor - is a temporary solution providing default values for
min, max, step, tolerance
getDistance
public double getDistance(IndexObject v1,
IndexObject v2)
- Description copied from interface:
Metric
- Computes the distance between two objects.
- Specified by:
getDistance
in interface Metric
- Parameters:
v1
- the Object
over which the keys are defined.v2
- the other Object
over which the keys are defined.
- Returns:
- the distance between the two objects
getDistance
public double getDistance(Spectra v1,
Spectra v2)
- Parameters:
v1
- the MSKeyObject
over which the keys are defined.v2
- the other MSKeyObject
over which the keys are defined.
(C) 2002 - 2006 The MoBIoS Group