Mobios v0.91

mobios.dist
Interface Metric

All Superinterfaces:
Serializable
All Known Implementing Classes:
CountedMetric, ImageMetric, LMetric, MSMetric, MSMSMetric, SequenceFragmentMetric, WHDGlobalSequenceFragmentMetric

public interface Metric
extends Serializable

Metric is a distance oracle. It specifies a binary function to compute distance between two data points in metric space. The distance function should capture the metric properties, i.e. non-negativity, symmetry and the triangle inequality.

Version:
2005.10.31
Author:
Jack, Rui Mao, Willard

Method Summary
 double getDistance(IndexObject one, IndexObject two)
          Computes the distance between two objects.
 

Method Detail

getDistance

double getDistance(IndexObject one,
                   IndexObject two)
Computes the distance between two objects.

Parameters:
one - the first IndexObject to compute distance on
two - the second IndexObject to compute distance on
Returns:
the distance between the two objects

Mobios v0.91

(C) 2002 - 2006 The MoBIoS Group