1
package de.lmu.ifi.dbs.elki.database.ids;
4
This file is part of ELKI:
5
Environment for Developing KDD-Applications Supported by Index-Structures
8
Ludwig-Maximilians-Universität München
9
Lehr- und Forschungseinheit für Datenbanksysteme
12
This program is free software: you can redistribute it and/or modify
13
it under the terms of the GNU Affero General Public License as published by
14
the Free Software Foundation, either version 3 of the License, or
15
(at your option) any later version.
17
This program is distributed in the hope that it will be useful,
18
but WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
GNU Affero General Public License for more details.
22
You should have received a copy of the GNU Affero General Public License
23
along with this program. If not, see <http://www.gnu.org/licenses/>.
26
import de.lmu.ifi.dbs.elki.distance.distancevalue.Distance;
29
* Pair containing a distance an an object ID
31
* Note: there is no getter for the object, as this is a {@link DBIDRef}.
33
* @author Erich Schubert
37
public interface DistanceDBIDPair<D extends Distance<D>> extends DBIDRef {
43
public D getDistance();
46
* Compare to another result, by distance, smaller first.
48
* @param other Other result
49
* @return Comparison result
51
public int compareByDistance(DistanceDBIDPair<D> other);