Package | Description |
---|---|
de.lmu.ifi.dbs.elki.distance.distancefunction.external |
Distance functions using external data sources.
|
de.lmu.ifi.dbs.elki.distance.distancevalue |
Distance values, i.e. object storing an actual distance value along with
comparison functions and value parsers.
|
Modifier and Type | Field and Description |
---|---|
private Map<DBIDPair,FloatDistance> |
FileBasedFloatDistanceFunction.cache
The distance cache
|
protected DistanceParser<FloatDistance> |
FileBasedFloatDistanceFunction.Parameterizer.parser |
Modifier and Type | Method and Description |
---|---|
FloatDistance |
DiskCacheBasedFloatDistanceFunction.distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their objects
ids.
|
FloatDistance |
FileBasedFloatDistanceFunction.distance(DBIDRef id1,
DBIDRef id2)
Returns the distance between the two objects specified by their objects
ids.
|
FloatDistance |
DiskCacheBasedFloatDistanceFunction.getDistanceFactory() |
FloatDistance |
FileBasedFloatDistanceFunction.getDistanceFactory() |
Modifier and Type | Method and Description |
---|---|
private void |
FileBasedFloatDistanceFunction.loadCache(DistanceParser<FloatDistance> parser,
File matrixfile) |
Constructor and Description |
---|
FileBasedFloatDistanceFunction(DistanceParser<FloatDistance> parser,
File matrixfile)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
static FloatDistance |
FloatDistance.FACTORY
The static factory instance
|
static FloatDistance |
FloatDistance.INFINITE_DISTANCE
Infinite distance.
|
static FloatDistance |
FloatDistance.UNDEFINED_DISTANCE
Undefined distance.
|
static FloatDistance |
FloatDistance.ZERO_DISTANCE
Zero distance.
|
Modifier and Type | Method and Description |
---|---|
FloatDistance |
FloatDistance.fromDouble(double val) |
FloatDistance |
FloatDistance.infiniteDistance()
An infinite FloatDistance is based on
Float.POSITIVE_INFINITY . |
FloatDistance |
FloatDistance.nullDistance()
A null FloatDistance is based on 0.
|
FloatDistance |
FloatDistance.parseString(String val)
As pattern is required a String defining a Float.
|
FloatDistance |
FloatDistance.undefinedDistance()
An undefined FloatDistance is based on
Float.NaN . |
Modifier and Type | Method and Description |
---|---|
int |
FloatDistance.compareTo(FloatDistance other) |