protected static class AbstractHDBSCAN.HDBSCANAdapter extends Object implements PrimsMinimumSpanningTree.Adapter<ArrayDBIDs>
Modifier and Type | Field and Description |
---|---|
private DoubleDataStore |
coredists
Core distance storage.
|
private DistanceQuery<?> |
distq
Distance query for exact distances.
|
private ArrayDBIDs |
ids
IDs to process.
|
private DBIDArrayIter |
p
Iterators for accessing the data objects.
|
private DBIDArrayIter |
q
Iterators for accessing the data objects.
|
Constructor and Description |
---|
AbstractHDBSCAN.HDBSCANAdapter(ArrayDBIDs ids,
DoubleDataStore coredists,
DistanceQuery<?> distq)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(ArrayDBIDs data,
int ip,
int iq)
Get the distance of two objects
|
int |
size(ArrayDBIDs data)
Get number of objects in dataset
|
private ArrayDBIDs ids
private DBIDArrayIter q
private DBIDArrayIter p
private DoubleDataStore coredists
private DistanceQuery<?> distq
public AbstractHDBSCAN.HDBSCANAdapter(ArrayDBIDs ids, DoubleDataStore coredists, DistanceQuery<?> distq)
ids
- Ids to process.coredists
- Core distancesdistq
- Distance querypublic double distance(ArrayDBIDs data, int ip, int iq)
PrimsMinimumSpanningTree.Adapter
distance
in interface PrimsMinimumSpanningTree.Adapter<ArrayDBIDs>
data
- Data setip
- First indexiq
- Second indexpublic int size(ArrayDBIDs data)
PrimsMinimumSpanningTree.Adapter
size
in interface PrimsMinimumSpanningTree.Adapter<ArrayDBIDs>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.