@Title(value="File based double distance for database objects.") @Description(value="Loads double distance values from an external matrix.") public class DiskCacheBasedDoubleDistanceFunction extends AbstractDBIDRangeDistanceFunction
Modifier and Type | Class and Description |
---|---|
static class |
DiskCacheBasedDoubleDistanceFunction.Parameterizer
Parameterization class.
|
AbstractDatabaseDistanceFunction.Instance<O>
Modifier and Type | Field and Description |
---|---|
private OnDiskUpperTriangleMatrix |
cache
The distance matrix
|
static int |
DOUBLE_CACHE_MAGIC
Magic to identify double cache matrices
|
Constructor and Description |
---|
DiskCacheBasedDoubleDistanceFunction(OnDiskUpperTriangleMatrix cache)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(int i1,
int i2)
Compute the distance for two integer offsets.
|
boolean |
equals(Object obj) |
distance, getInputTypeRestriction, instantiate
isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isMetric, isSymmetric
public static final int DOUBLE_CACHE_MAGIC
private OnDiskUpperTriangleMatrix cache
public DiskCacheBasedDoubleDistanceFunction(OnDiskUpperTriangleMatrix cache)
cache
- Distance matrixpublic double distance(int i1, int i2)
DBIDRangeDistanceFunction
i1
- First offseti2
- Second offsetCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.