Package elki.clustering.subspace
Class HiSC.Instance
- java.lang.Object
-
- elki.clustering.optics.GeneralizedOPTICS.Instance<CorrelationClusterOrder>
-
- elki.clustering.subspace.HiSC.Instance
-
- All Implemented Interfaces:
java.util.Comparator<DBIDRef>
- Enclosing class:
- HiSC
private class HiSC.Instance extends GeneralizedOPTICS.Instance<CorrelationClusterOrder>
Algorithm instance for a single data set.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private ArrayModifiableDBIDsclusterOrderCluster order.private WritableDataStore<long[]>commonPreferenceVectorsShared preference vectors.private WritableIntegerDataStorecorrelationValueCorrelation dimensionality.protected WritableDataStore<long[]>preferenceVectorsThe data store.private Relation<? extends NumberVector>relationData relation.-
Fields inherited from class elki.clustering.optics.GeneralizedOPTICS.Instance
candidates, predecessor, processedIDs, reachability
-
-
Constructor Summary
Constructors Constructor Description Instance(Relation<? extends NumberVector> relation)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CorrelationClusterOrderbuildResult()Build the final result.intcompare(DBIDRef o1, DBIDRef o2)private long[]determinePreferenceVector(DBIDRef id, DBIDs neighborIDs)Determines the preference vector according to the specified neighbor ids.protected voidexpandDBID(DBIDRef id)Add the current DBID to the cluster order, and expand its neighbors if minPts and similar conditions are satisfied.protected LogginggetLogger()Get the class logger.protected voidinitialDBID(DBIDRef id)Initialize for a new DBID.CorrelationClusterOrderrun()Process the data set.
-
-
-
Field Detail
-
preferenceVectors
protected WritableDataStore<long[]> preferenceVectors
The data store.
-
clusterOrder
private ArrayModifiableDBIDs clusterOrder
Cluster order.
-
relation
private Relation<? extends NumberVector> relation
Data relation.
-
correlationValue
private WritableIntegerDataStore correlationValue
Correlation dimensionality.
-
commonPreferenceVectors
private WritableDataStore<long[]> commonPreferenceVectors
Shared preference vectors.
-
-
Constructor Detail
-
Instance
public Instance(Relation<? extends NumberVector> relation)
Constructor.- Parameters:
relation- Relation
-
-
Method Detail
-
run
public CorrelationClusterOrder run()
Description copied from class:GeneralizedOPTICS.InstanceProcess the data set.- Overrides:
runin classGeneralizedOPTICS.Instance<CorrelationClusterOrder>- Returns:
- Cluster order result.
-
determinePreferenceVector
private long[] determinePreferenceVector(DBIDRef id, DBIDs neighborIDs)
Determines the preference vector according to the specified neighbor ids.- Parameters:
id- the id of the object for which the preference vector should be determinedneighborIDs- the ids of the neighbors- Returns:
- the preference vector
-
buildResult
protected CorrelationClusterOrder buildResult()
Description copied from class:GeneralizedOPTICS.InstanceBuild the final result.- Specified by:
buildResultin classGeneralizedOPTICS.Instance<CorrelationClusterOrder>- Returns:
- Result
-
initialDBID
protected void initialDBID(DBIDRef id)
Description copied from class:GeneralizedOPTICS.InstanceInitialize for a new DBID.- Specified by:
initialDBIDin classGeneralizedOPTICS.Instance<CorrelationClusterOrder>- Parameters:
id- Current object ID
-
expandDBID
protected void expandDBID(DBIDRef id)
Description copied from class:GeneralizedOPTICS.InstanceAdd the current DBID to the cluster order, and expand its neighbors if minPts and similar conditions are satisfied.- Specified by:
expandDBIDin classGeneralizedOPTICS.Instance<CorrelationClusterOrder>- Parameters:
id- Current object ID
-
compare
public int compare(DBIDRef o1, DBIDRef o2)
- Specified by:
comparein interfacejava.util.Comparator<DBIDRef>- Overrides:
comparein classGeneralizedOPTICS.Instance<CorrelationClusterOrder>
-
getLogger
protected Logging getLogger()
Description copied from class:GeneralizedOPTICS.InstanceGet the class logger.- Specified by:
getLoggerin classGeneralizedOPTICS.Instance<CorrelationClusterOrder>- Returns:
- Class logger
-
-