private class DiSH.Instance extends GeneralizedOPTICS.Instance<V,DiSH.DiSHClusterOrder>
Modifier and Type | Class and Description |
---|---|
private class |
DiSH.Instance.Sorter
Sort new candidates by their distance, for determining the core size.
|
Modifier and Type | Field and Description |
---|---|
private ArrayModifiableDBIDs |
clusterOrder
Cluster order.
|
private WritableDataStore<long[]> |
commonPreferenceVectors
Shared preference vectors.
|
private WritableIntegerDataStore |
correlationValue
Correlation value.
|
private DiSHPreferenceVectorIndex<V> |
index
Index.
|
private Relation<V> |
relation
Data relation.
|
(package private) java.util.Comparator<DBIDRef> |
tmpcomp
Sort object by the temporary fields.
|
private WritableIntegerDataStore |
tmpCorrelation
Temporary storage of correlation values.
|
private WritableDoubleDataStore |
tmpDistance
Temporary storage of distances.
|
private ArrayModifiableDBIDs |
tmpIds
Temporary ids.
|
private WritableDataStore<long[]> |
tmpPreferenceVectors
Temporary storage for new preference vectors.
|
candidates, predecessor, processedIDs, reachability
Constructor and Description |
---|
Instance(Database db,
Relation<V> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected DiSH.DiSHClusterOrder |
buildResult()
Build the final result.
|
int |
compare(DBIDRef o1,
DBIDRef o2) |
protected void |
expandDBID(DBIDRef id)
Add the current DBID to the cluster order, and expand its neighbors if
minPts and similar conditions are satisfied.
|
protected Logging |
getLogger()
Get the class logger.
|
protected void |
initialDBID(DBIDRef id)
Initialize for a new DBID.
|
DiSH.DiSHClusterOrder |
run()
Process the data set.
|
private Relation<V extends NumberVector> relation
private ArrayModifiableDBIDs clusterOrder
private WritableIntegerDataStore correlationValue
private WritableDataStore<long[]> commonPreferenceVectors
private ArrayModifiableDBIDs tmpIds
private WritableIntegerDataStore tmpCorrelation
private WritableDoubleDataStore tmpDistance
java.util.Comparator<DBIDRef> tmpcomp
private DiSHPreferenceVectorIndex<V extends NumberVector> index
private WritableDataStore<long[]> tmpPreferenceVectors
public DiSH.DiSHClusterOrder run()
GeneralizedOPTICS.Instance
run
in class GeneralizedOPTICS.Instance<V extends NumberVector,DiSH.DiSHClusterOrder>
protected DiSH.DiSHClusterOrder buildResult()
GeneralizedOPTICS.Instance
buildResult
in class GeneralizedOPTICS.Instance<V extends NumberVector,DiSH.DiSHClusterOrder>
protected void initialDBID(DBIDRef id)
GeneralizedOPTICS.Instance
initialDBID
in class GeneralizedOPTICS.Instance<V extends NumberVector,DiSH.DiSHClusterOrder>
id
- Current object IDprotected void expandDBID(DBIDRef id)
GeneralizedOPTICS.Instance
expandDBID
in class GeneralizedOPTICS.Instance<V extends NumberVector,DiSH.DiSHClusterOrder>
id
- Current object IDpublic int compare(DBIDRef o1, DBIDRef o2)
compare
in interface java.util.Comparator<DBIDRef>
compare
in class GeneralizedOPTICS.Instance<V extends NumberVector,DiSH.DiSHClusterOrder>
protected Logging getLogger()
GeneralizedOPTICS.Instance
getLogger
in class GeneralizedOPTICS.Instance<V extends NumberVector,DiSH.DiSHClusterOrder>
Copyright © 2019 ELKI Development Team. License information.