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 |
FileBasedFloatDistanceFunction.distance(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their objects
ids.
|
FloatDistance |
DiskCacheBasedFloatDistanceFunction.distance(DBID id1,
DBID id2)
Returns the distance between the two objects specified by their objects
ids.
|
FloatDistance |
FileBasedFloatDistanceFunction.getDistanceFactory() |
FloatDistance |
DiskCacheBasedFloatDistanceFunction.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
|
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.minus(FloatDistance distance) |
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.plus(FloatDistance distance) |
FloatDistance |
FloatDistance.times(float lambda)
Returns a new distance as the product of this distance and the given float
value.
|
FloatDistance |
FloatDistance.times(FloatDistance distance)
Returns a new distance as the product of this distance and the given
distance.
|
FloatDistance |
FloatDistance.undefinedDistance()
An undefined FloatDistance is based on
Float.NaN . |
Modifier and Type | Method and Description |
---|---|
int |
FloatDistance.compareTo(FloatDistance other) |
FloatDistance |
FloatDistance.minus(FloatDistance distance) |
FloatDistance |
FloatDistance.plus(FloatDistance distance) |
FloatDistance |
FloatDistance.times(FloatDistance distance)
Returns a new distance as the product of this distance and the given
distance.
|