V
- the type of NumberVector this subspace containspublic class CLIQUESubspace<V extends NumberVector<?>> extends Subspace
Modifier and Type | Class and Description |
---|---|
static class |
CLIQUESubspace.CoverageComparator
A partial comparator for CLIQUESubspaces based on their coverage.
|
Subspace.DimensionComparator
Modifier and Type | Field and Description |
---|---|
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 List<CLIQUEUnit<V>> |
denseUnits
The dense units belonging to this subspace.
|
Constructor and Description |
---|
CLIQUESubspace(BitSet dimensions)
Creates a new k-dimensional subspace of the original data space.
|
CLIQUESubspace(int dimension)
Creates a new one-dimensional subspace of the original data space.
|
Modifier and Type | Method and Description |
---|---|
void |
addDenseUnit(CLIQUEUnit<V> unit)
Adds the specified dense unit to this subspace.
|
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<V> unit,
ModifiableDBIDs cluster,
CLIQUESubspace<V> 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.
|
List<CLIQUEUnit<V>> |
getDenseUnits() |
CLIQUESubspace<V> |
join(CLIQUESubspace<V> other,
double all,
double tau)
Joins this subspace and its dense units with the specified subspace and its
dense units.
|
CLIQUEUnit<V> |
leftNeighbor(CLIQUEUnit<V> unit,
int dim)
Returns the left neighbor of the given unit in the specified dimension.
|
CLIQUEUnit<V> |
rightNeighbor(CLIQUEUnit<V> unit,
Integer dim)
Returns the right neighbor of the given unit in the specified dimension.
|
String |
toString(String pre)
Calls the super method and adds additionally the coverage, and the dense
units of this subspace.
|
dimensionality, dimensonsToString, dimensonsToString, equals, getDimensions, hashCode, isSubspace, join, joinLastDimensions, toString
private List<CLIQUEUnit<V extends NumberVector<?>>> denseUnits
private int coverage
public CLIQUESubspace(int dimension)
dimension
- the dimension building this subspacepublic CLIQUESubspace(BitSet dimensions)
dimensions
- the dimensions building this subspacepublic void addDenseUnit(CLIQUEUnit<V> unit)
unit
- the unit to be added.public List<Pair<Subspace,ModifiableDBIDs>> determineClusters()
public void dfs(CLIQUEUnit<V> unit, ModifiableDBIDs cluster, CLIQUESubspace<V> model)
unit
- the unitcluster
- the IDs of the feature vectors of the current clustermodel
- the model of the clusterpublic CLIQUEUnit<V> leftNeighbor(CLIQUEUnit<V> unit, int dim)
unit
- the unit to determine the left neighbor fordim
- the dimensionpublic CLIQUEUnit<V> rightNeighbor(CLIQUEUnit<V> unit, Integer dim)
unit
- the unit to determine the right neighbor fordim
- the dimensionpublic int getCoverage()
public List<CLIQUEUnit<V>> getDenseUnits()
public CLIQUESubspace<V> join(CLIQUESubspace<V> 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)