public class CLIQUESubspace extends Subspace
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<CLIQUESubspace> |
BY_COVERAGE
A partial comparator for CLIQUESubspaces based on their coverage.
|
private int |
coverage
The coverage of this subspace, which is the number of all feature vectors
that fall inside the dense units of this subspace.
|
private java.util.List<CLIQUEUnit> |
denseUnits
The dense units belonging to this subspace.
|
DIMENSION_COMPARATOR
Constructor and Description |
---|
CLIQUESubspace(int dimension)
Creates a new one-dimensional subspace of the original data space.
|
CLIQUESubspace(long[] dimensions)
Creates a new k-dimensional subspace of the original data space.
|
Modifier and Type | Method and Description |
---|---|
void |
addDenseUnit(CLIQUEUnit unit)
Adds the specified dense unit to this subspace.
|
java.util.List<Pair<Subspace,ModifiableDBIDs>> |
determineClusters()
Determines all clusters in this subspace by performing a depth-first search
algorithm to find connected dense units.
|
void |
dfs(CLIQUEUnit unit,
ModifiableDBIDs cluster,
CLIQUESubspace model)
Depth-first search algorithm to find connected dense units in this subspace
that build a cluster.
|
int |
getCoverage()
Returns the coverage of this subspace, which is the number of all feature
vectors that fall inside the dense units of this subspace.
|
CLIQUESubspace |
join(CLIQUESubspace other,
double all,
double tau)
Joins this subspace and its dense units with the specified subspace and its
dense units.
|
protected CLIQUEUnit |
leftNeighbor(CLIQUEUnit unit,
int dim)
Returns the left neighbor of the given unit in the specified dimension.
|
protected CLIQUEUnit |
rightNeighbor(CLIQUEUnit unit,
int dim)
Returns the right neighbor of the given unit in the specified dimension.
|
java.lang.String |
toString()
Calls the super method and adds additionally the coverage, and the dense
units of this subspace.
|
dimensionality, dimensionsToString, dimensonsToString, equals, getDimensions, hashCode, isSubspace, join, joinLastDimensions
private java.util.List<CLIQUEUnit> denseUnits
private int coverage
public static java.util.Comparator<CLIQUESubspace> BY_COVERAGE
Compares the two specified CLIQUESubspaces for order. Returns a negative integer, zero, or a positive integer if the coverage of the first subspace is greater than, equal to, or less than the coverage of the second subspace. I.e. the subspaces are reverse ordered by the values of their coverage.
Note: this comparator provides an ordering that is inconsistent with equals.
public CLIQUESubspace(int dimension)
dimension
- the dimension building this subspacepublic CLIQUESubspace(long[] dimensions)
dimensions
- the dimensions building this subspacepublic void addDenseUnit(CLIQUEUnit unit)
unit
- the unit to be added.public java.util.List<Pair<Subspace,ModifiableDBIDs>> determineClusters()
public void dfs(CLIQUEUnit unit, ModifiableDBIDs cluster, CLIQUESubspace model)
unit
- the unitcluster
- the IDs of the feature vectors of the current clustermodel
- the model of the clusterprotected CLIQUEUnit leftNeighbor(CLIQUEUnit unit, int dim)
unit
- the unit to determine the left neighbor fordim
- the dimensionprotected CLIQUEUnit rightNeighbor(CLIQUEUnit unit, int dim)
unit
- the unit to determine the right neighbor fordim
- the dimensionpublic int getCoverage()
public CLIQUESubspace join(CLIQUESubspace other, double all, double tau)
other
- the subspace to joinall
- the overall number of feature vectorstau
- the density threshold for the selectivity of a unitSubspace.joinLastDimensions(de.lmu.ifi.dbs.elki.data.Subspace)
Copyright © 2019 ELKI Development Team. License information.