|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.data.type.SimpleTypeInformation<V>
de.lmu.ifi.dbs.elki.data.type.VectorTypeInformation<V>
V - Vector typepublic class VectorTypeInformation<V extends FeatureVector<?,?>>

Construct a type information for vector spaces with fixed dimensionality.
| Field Summary | |
|---|---|
protected int |
maxdim
Maximum dimensionality |
protected int |
mindim
Minimum dimensionality |
| Constructor Summary | |
|---|---|
VectorTypeInformation(Class<? super V> cls)
Constructor without size constraints. |
|
VectorTypeInformation(Class<? super V> cls,
int mindim,
int maxdim)
Constructor. |
|
| Method Summary | ||
|---|---|---|
static
|
get(Class<T> cls)
Pseudo constructor that is often convenient to use when T is not completely known. |
|
static
|
get(Class<T> cls,
int mindim,
int maxdim)
Pseudo constructor that is often convenient to use when T is not completely known. |
|
boolean |
isAssignableFrom(Object other)
Test whether this type is assignable from a given object instance. |
|
boolean |
isAssignableFromType(TypeInformation type)
Test whether this type is assignable from another type. |
|
int |
maxdim()
Get the maximum dimensionality of the occurring vectors. |
|
int |
mindim()
Get the minimum dimensionality of the occurring vectors. |
|
String |
toString()
|
|
| Methods inherited from class de.lmu.ifi.dbs.elki.data.type.SimpleTypeInformation |
|---|
cast, getLabel, getRestrictionClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final int mindim
protected final int maxdim
| Constructor Detail |
|---|
public VectorTypeInformation(Class<? super V> cls,
int mindim,
int maxdim)
cls - base classmindim - Minimum dimensionalitymaxdim - Maximum dimensionalitypublic VectorTypeInformation(Class<? super V> cls)
cls - | Method Detail |
|---|
public boolean isAssignableFromType(TypeInformation type)
TypeInformation
isAssignableFromType in interface TypeInformationisAssignableFromType in class SimpleTypeInformation<V extends FeatureVector<?,?>>type - Other type
public boolean isAssignableFrom(Object other)
TypeInformation
isAssignableFrom in interface TypeInformationisAssignableFrom in class SimpleTypeInformation<V extends FeatureVector<?,?>>other - Other object
public int mindim()
public int maxdim()
public static <T extends FeatureVector<?,?>> VectorTypeInformation<T> get(Class<T> cls,
int mindim,
int maxdim)
T - Typecls - Class restrictionmindim - Minimum dimensionalitymaxdim - Maximum dimensionality
public static <T extends FeatureVector<?,?>> VectorTypeInformation<T> get(Class<T> cls)
T - Typecls - Class restriction
public String toString()
toString in class SimpleTypeInformation<V extends FeatureVector<?,?>>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||