Mobios v0.91

mobios.dist
Class MSMetric

java.lang.Object
  extended by 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)
           
 
Method Summary
 double getDistance(IndexObject v1, IndexObject v2)
          Computes the distance between two objects.
 double getDistance(Spectra v1, Spectra v2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

Method Detail

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.

Mobios v0.91

(C) 2002 - 2006 The MoBIoS Group