|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.data.Subspace<V>
de.lmu.ifi.dbs.elki.algorithm.clustering.subspace.clique.CLIQUESubspace<V>
V - the type of NumberVector this subspace containspublic class CLIQUESubspace<V extends NumberVector<V,?>>
Represents a subspace of the original data space in the CLIQUE algorithm.
| Nested Class Summary | |
|---|---|
static class |
CLIQUESubspace.CoverageComparator
A partial comparator for CLIQUESubspaces based on their coverage. |
| Nested classes/interfaces inherited from class de.lmu.ifi.dbs.elki.data.Subspace |
|---|
Subspace.DimensionComparator |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
addDenseUnit(CLIQUEUnit<V> unit)
Adds the specified dense unit to this subspace. |
List<Pair<Subspace<V>,Set<Integer>>> |
determineClusters(Database<V> database)
Determines all clusters in this subspace by performing a depth-first search algorithm to find connected dense units. |
void |
dfs(CLIQUEUnit<V> unit,
Set<Integer> 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,
Integer 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. |
| Methods inherited from class de.lmu.ifi.dbs.elki.data.Subspace |
|---|
dimensionality, dimensonsToString, dimensonsToString, equals, getDimensions, hashCode, isSubspace, join, joinLastDimensions, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private List<CLIQUEUnit<V extends NumberVector<V,?>>> denseUnits
private int coverage
| Constructor Detail |
|---|
public CLIQUESubspace(int dimension)
dimension - the dimension building this subspacepublic CLIQUESubspace(BitSet dimensions)
dimensions - the dimensions building this subspace| Method Detail |
|---|
public void addDenseUnit(CLIQUEUnit<V> unit)
unit - the unit to be added.public List<Pair<Subspace<V>,Set<Integer>>> determineClusters(Database<V> database)
database - the database containing the feature vectors
public void dfs(CLIQUEUnit<V> unit,
Set<Integer> cluster,
CLIQUESubspace<V> model)
unit - the unitcluster - the IDs of the feature vectors of the current clustermodel - the model of the cluster
public CLIQUEUnit<V> leftNeighbor(CLIQUEUnit<V> unit,
Integer dim)
unit - the unit to determine the left neighbor fordim - the dimension
public CLIQUEUnit<V> rightNeighbor(CLIQUEUnit<V> unit,
Integer dim)
unit - the unit to determine the right neighbor fordim - the dimension
public 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 unit
Subspace.joinLastDimensions(Subspace)public String toString(String pre)
toString in class Subspace<V extends NumberVector<V,?>>pre - a string prefix for each row of this string representation
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||