|
|
|||||||||
| 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>
V - the type of FeatureVector this subspace containspublic class Subspace<V extends FeatureVector<V,?>>

Represents a subspace of the original data space.
| Nested Class Summary | |
|---|---|
static class |
Subspace.DimensionComparator
A comparator for subspaces based on their involved dimensions. |
| Field Summary | |
|---|---|
private int |
dimensionality
The dimensionality of this subspace. |
private BitSet |
dimensions
The dimensions building this subspace. |
| Constructor Summary | |
|---|---|
Subspace(BitSet dimensions)
Creates a new k-dimensional subspace of the original data space. |
|
Subspace(int dimension)
Creates a new one-dimensional subspace of the original data space. |
|
| Method Summary | |
|---|---|
int |
dimensionality()
Returns the dimensionality of this subspace. |
String |
dimensonsToString()
Returns a string representation of the dimensions of this subspace separated by comma. |
String |
dimensonsToString(String sep)
Returns a string representation of the dimensions of this subspace. |
boolean |
equals(Object obj)
Indicates if the specified object is equal to this subspace, i.e. if the specified object is a Subspace and is built of the same dimensions than this subspace. |
BitSet |
getDimensions()
Returns the BitSet representing the dimensions of this subspace. |
int |
hashCode()
Returns the hash code value of the dimensions of this subspace. |
boolean |
isSubspace(Subspace<V> subspace)
Returns true if this subspace is a subspace of the specified subspace, i.e. |
Subspace<V> |
join(Subspace<V> other)
Joins this subspace with the specified subspace. |
protected BitSet |
joinLastDimensions(Subspace<V> other)
Joins the dimensions of this subspace with the dimensions of the specified subspace. |
String |
toString()
Returns a string representation of this subspace by calling toString() with an empty prefix. |
String |
toString(String pre)
Returns a string representation of this subspace that contains the given string prefix and the dimensions of this subspace. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final BitSet dimensions
private final int dimensionality
| Constructor Detail |
|---|
public Subspace(int dimension)
dimension - the dimension building this subspacepublic Subspace(BitSet dimensions)
dimensions - the dimensions building this subspace| Method Detail |
|---|
public final BitSet getDimensions()
public final int dimensionality()
public Subspace<V> join(Subspace<V> other)
other - the subspace to join
joinLastDimensions(Subspace)public String toString()
toString() with an empty prefix.
toString in class Objectpublic String toString(String pre)
pre - a string prefix for each row of this string representation
public String dimensonsToString()
public String dimensonsToString(String sep)
sep - the separator between the dimensions
public boolean isSubspace(Subspace<V> subspace)
subspace - the subspace to test
protected BitSet joinLastDimensions(Subspace<V> other)
other - the subspace to join
public int hashCode()
dimensions of this subspace.
hashCode in class Objectpublic boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||