public class CLIQUEUnit
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
private boolean | 
assigned
Flag that indicates if this unit is already assigned to a cluster. 
 | 
private double[] | 
bounds
The bounding values (min, max) for each dimension. 
 | 
private int[] | 
dims
The dimensions involved in this subspace. 
 | 
private ModifiableDBIDs | 
ids
The ids of the feature vectors this unit contains. 
 | 
| Modifier | Constructor and Description | 
|---|---|
private  | 
CLIQUEUnit(CLIQUEUnit prefix,
          int newdim,
          double min,
          double max,
          ModifiableDBIDs ids)
Creates a new k-dimensional unit for the given intervals. 
 | 
  | 
CLIQUEUnit(int dim,
          double min,
          double max)
Creates a new one-dimensional unit for the given interval. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
addFeatureVector(DBIDRef id,
                NumberVector vector)
Adds the id of the specified feature vector to this unit, if this unit
 contains the feature vector. 
 | 
private boolean | 
checkDimensions(CLIQUEUnit other,
               int e)
Check that the first e dimensions agree. 
 | 
boolean | 
contains(NumberVector vector)
Returns true, if the intervals of this unit contain the specified feature
 vector. 
 | 
protected boolean | 
containsLeftNeighbor(CLIQUEUnit unit,
                    int d)
Returns true if this unit is the left neighbor of the given unit. 
 | 
protected boolean | 
containsRightNeighbor(CLIQUEUnit unit,
                     int d)
Returns true if this unit is the right neighbor of the given unit. 
 | 
int | 
dimensionality()
Get the dimensionality of this unit. 
 | 
int | 
getDimension(int i)
Get the ith dimension constrained. 
 | 
DBIDs | 
getIds()
Returns the ids of the feature vectors this unit contains. 
 | 
boolean | 
isAssigned()
Returns true if this unit is already assigned to a cluster. 
 | 
protected CLIQUEUnit | 
join(CLIQUEUnit other,
    double all,
    double tau)
Joins this unit with the specified unit. 
 | 
void | 
markAsAssigned()
Marks this unit as assigned to a cluster. 
 | 
int | 
numberOfFeatureVectors()
Returns the number of feature vectors this unit contains. 
 | 
double | 
selectivity(double total)
Returns the selectivity of this unit, which is defined as the fraction of
 total feature vectors contained in this unit. 
 | 
java.lang.String | 
toString()
Returns a string representation of this unit that contains the intervals of
 this unit. 
 | 
private int[] dims
private double[] bounds
private ModifiableDBIDs ids
private boolean assigned
private CLIQUEUnit(CLIQUEUnit prefix, int newdim, double min, double max, ModifiableDBIDs ids)
prefix - Prefix unit that will be extended by one dimensionnewdim - Additional dimensionmin - Minimum boundmax - Maximum boundids - the ids of the feature vectors belonging to this unitpublic CLIQUEUnit(int dim,
                  double min,
                  double max)
dim - Dimensionmin - Minimummax - MAximumpublic int dimensionality()
public int getDimension(int i)
i - Indexpublic boolean contains(NumberVector vector)
vector - the feature vector to be tested for containmentpublic boolean addFeatureVector(DBIDRef id, NumberVector vector)
id - Vector idvector - the feature vector to be addedpublic int numberOfFeatureVectors()
public double selectivity(double total)
total - the total number of feature vectorsprotected boolean containsLeftNeighbor(CLIQUEUnit unit, int d)
unit - Reference unitd - Current dimensionprotected boolean containsRightNeighbor(CLIQUEUnit unit, int d)
unit - Reference unitd - Current dimensionpublic boolean isAssigned()
public void markAsAssigned()
public DBIDs getIds()
protected CLIQUEUnit join(CLIQUEUnit other, double all, double tau)
other - the unit to be joinedall - the overall number of feature vectorstau - the density threshold for the selectivity of a unitprivate boolean checkDimensions(CLIQUEUnit other, int e)
other - Other unite - Number of dimensions to checktrue if the first e dimensions are the same (index and
         bounds)public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 ELKI Development Team. License information.