at.tuwien.ifs.feature.extraction.audio.distance
Interface DistanceMetric
- All Known Implementing Classes:
- AbstractMetric, L1Metric, L2Metric
public interface DistanceMetric
The interface, distance metric classes have to implement.
- Version:
- $Id: DistanceMetric.java 155 2010-06-16 15:45:39Z frank $
- Author:
- mbach
Method Summary |
double |
distance(double[] vector1,
double[] vector2)
Calculates the distance between two vectors provided by argument vector1 and
vector2 . |
distance
double distance(double[] vector1,
double[] vector2)
throws MetricException
- Calculates the distance between two vectors provided by argument
vector1
and
vector2
. A MetricException
is thrown, if the dimensionalities of
the two vectors differ.
- Parameters:
vector1
- first vector.vector2
- second vector.
- Returns:
- the distance between
vector1
and vector2
.
- Throws:
MetricException
- if the dimensionalities of the two vectors differ.