|
|
|||||||||||||||||||||
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 RealVector handled by this Algorithmpublic class CLIQUESubspace<V extends RealVector<V,?>>
Represents a subspace of the original dataspace in the CLIQUE algorithm.
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(int dimension)
Creates a new one-dimensional subspace of the original dataspace. |
|
CLIQUESubspace(SortedSet<Integer> dimensions)
Creates a new k-dimensional subspace of the original dataspace. |
Method Summary | |
---|---|
void |
addDenseUnit(CLIQUEUnit<V> unit)
Adds the specified dense unit to this subspace. |
int |
compareTo(CLIQUESubspace<V> other)
Compares this subspace with the specified subspace for order. |
Map<CLIQUESubspace<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)
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<V> |
join(CLIQUESubspace<V> other,
double all,
double tau)
Joins this subspace with the specified subspace. |
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)
Returns a string representation of this subspace that contains the coverage, the dimensions and the dense units of this subspace. |
void |
writeToText(TextWriterStream out,
String label)
Serialize using above toString method |
Methods inherited from class de.lmu.ifi.dbs.elki.data.Subspace |
---|
getDimensions, join, joinDimensions, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private List<CLIQUEUnit<V extends RealVector<V,?>>> denseUnits
private int coverage
Constructor Detail |
---|
public CLIQUESubspace(int dimension)
dimension
- the dimension building this subspacepublic CLIQUESubspace(SortedSet<Integer> dimensions)
dimensions
- the dimensions building this subspaceMethod Detail |
---|
public void addDenseUnit(CLIQUEUnit<V> unit)
unit
- the unit to be added.public int compareTo(CLIQUESubspace<V> other)
compareTo
in interface Comparable<CLIQUESubspace<V extends RealVector<V,?>>>
other
- the subspace to be compared
public Map<CLIQUESubspace<V>,Set<Integer>> determineClusters(Database<V> database)
database
- the database containing the feature vectors
public void dfs(CLIQUEUnit<V> unit, Set<Integer> cluster)
unit
- the unitcluster
- the ids of the feature vectors of the current clusterpublic 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 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
public String toString(String pre)
toString
in class Subspace<V extends RealVector<V,?>>
pre
- a string prefix
public void writeToText(TextWriterStream out, String label)
writeToText
in interface TextWriteable
out
- Output writerlabel
- Label
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |