Package elki.clustering.correlation
Class HiCO.Instance
- java.lang.Object
-
- elki.clustering.optics.GeneralizedOPTICS.Instance<CorrelationClusterOrder>
-
- elki.clustering.correlation.HiCO.Instance
-
- All Implemented Interfaces:
java.util.Comparator<DBIDRef>
- Enclosing class:
- HiCO
private class HiCO.Instance extends GeneralizedOPTICS.Instance<CorrelationClusterOrder>
Instance of the OPTICS algorithm.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private ArrayModifiableDBIDsclusterOrderCluster order.private WritableIntegerDataStorecorrelationValueCorrelation value.protected WritableDataStore<PCAFilteredResult>localPCAsThe storage for precomputed local PCAsprivate Relation<? extends NumberVector>relationData relation.(package private) java.util.Comparator<DBIDRef>tmpcompSort object by the temporary fields.private WritableIntegerDataStoretmpCorrelationTemporary storage of correlation values.private WritableDoubleDataStoretmpDistanceTemporary storage of distances.private ArrayModifiableDBIDstmpIdsTemporary ids.-
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)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
-
relation
private Relation<? extends NumberVector> relation
Data relation.
-
localPCAs
protected WritableDataStore<PCAFilteredResult> localPCAs
The storage for precomputed local PCAs
-
clusterOrder
private ArrayModifiableDBIDs clusterOrder
Cluster order.
-
correlationValue
private WritableIntegerDataStore correlationValue
Correlation value.
-
tmpCorrelation
private WritableIntegerDataStore tmpCorrelation
Temporary storage of correlation values.
-
tmpDistance
private WritableDoubleDataStore tmpDistance
Temporary storage of distances.
-
tmpIds
private ArrayModifiableDBIDs tmpIds
Temporary ids.
-
tmpcomp
java.util.Comparator<DBIDRef> tmpcomp
Sort object by the temporary fields.
-
-
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.
-
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
-
-