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 ArrayModifiableDBIDs
clusterOrder
Cluster order.private WritableIntegerDataStore
correlationValue
Correlation value.protected WritableDataStore<PCAFilteredResult>
localPCAs
The storage for precomputed local PCAsprivate Relation<? extends NumberVector>
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.-
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 CorrelationClusterOrder
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.CorrelationClusterOrder
run()
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.Instance
Process the data set.- Overrides:
run
in classGeneralizedOPTICS.Instance<CorrelationClusterOrder>
- Returns:
- Cluster order result.
-
buildResult
protected CorrelationClusterOrder buildResult()
Description copied from class:GeneralizedOPTICS.Instance
Build the final result.- Specified by:
buildResult
in classGeneralizedOPTICS.Instance<CorrelationClusterOrder>
- Returns:
- Result
-
initialDBID
protected void initialDBID(DBIDRef id)
Description copied from class:GeneralizedOPTICS.Instance
Initialize for a new DBID.- Specified by:
initialDBID
in classGeneralizedOPTICS.Instance<CorrelationClusterOrder>
- Parameters:
id
- Current object ID
-
expandDBID
protected void expandDBID(DBIDRef id)
Description copied from class:GeneralizedOPTICS.Instance
Add the current DBID to the cluster order, and expand its neighbors if minPts and similar conditions are satisfied.- Specified by:
expandDBID
in classGeneralizedOPTICS.Instance<CorrelationClusterOrder>
- Parameters:
id
- Current object ID
-
compare
public int compare(DBIDRef o1, DBIDRef o2)
- Specified by:
compare
in interfacejava.util.Comparator<DBIDRef>
- Overrides:
compare
in classGeneralizedOPTICS.Instance<CorrelationClusterOrder>
-
getLogger
protected Logging getLogger()
Description copied from class:GeneralizedOPTICS.Instance
Get the class logger.- Specified by:
getLogger
in classGeneralizedOPTICS.Instance<CorrelationClusterOrder>
- Returns:
- Class logger
-
-