|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.data.type.SimpleTypeInformation<V> de.lmu.ifi.dbs.elki.data.type.VectorTypeInformation<V> de.lmu.ifi.dbs.elki.data.type.VectorFieldTypeInformation<V>
V
- Vector typepublic class VectorFieldTypeInformation<V extends FeatureVector<?,?>>
Type information to specify that a type has a fixed dimensionality.
Field Summary | |
---|---|
private V |
factory
Object factory for producing new instances |
private String[] |
labels
Labels |
Fields inherited from class de.lmu.ifi.dbs.elki.data.type.VectorTypeInformation |
---|
maxdim, mindim |
Constructor Summary | |
---|---|
VectorFieldTypeInformation(Class<? super V> cls)
Constructor for a request without fixed dimensionality. |
|
VectorFieldTypeInformation(Class<? super V> cls,
int dim)
Constructor for a request with fixed dimensionality. |
|
VectorFieldTypeInformation(Class<? super V> cls,
int mindim,
int maxdim)
Constructor for a request with minimum and maximum dimensionality. |
|
VectorFieldTypeInformation(Class<? super V> cls,
int dim,
String[] labels,
V factory)
Constructor with given dimensionality and factory, so usually an instance. |
|
VectorFieldTypeInformation(Class<? super V> cls,
int dim,
V factory)
Constructor with given dimensionality and factory, so usually an instance. |
Method Summary | ||
---|---|---|
int |
dimensionality()
Get the dimensionality of the type. |
|
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 dim)
Pseudo constructor that is often convenient to use when T is not completely known, but the dimensionality is fixed. |
|
V |
getFactory()
Get the object type factory. |
|
String |
getLabel(int col)
Get the column label |
|
boolean |
isAssignableFromType(TypeInformation type)
Test whether this type is assignable from another type. |
|
String |
toString()
|
Methods inherited from class de.lmu.ifi.dbs.elki.data.type.VectorTypeInformation |
---|
get, isAssignableFrom, maxdim, mindim |
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 |
---|
private final V extends FeatureVector<?,?> factory
private String[] labels
Constructor Detail |
---|
public VectorFieldTypeInformation(Class<? super V> cls)
cls
- Vector restriction class.public VectorFieldTypeInformation(Class<? super V> cls, int dim)
cls
- Vector restriction class.dim
- Dimensionality requestpublic VectorFieldTypeInformation(Class<? super V> cls, int mindim, int maxdim)
cls
- Vector restriction class.mindim
- Minimum dimensionality requestmaxdim
- Maximum dimensionality requestpublic VectorFieldTypeInformation(Class<? super V> cls, int dim, V factory)
cls
- Restriction java classdim
- Dimensionalityfactory
- Factory classpublic VectorFieldTypeInformation(Class<? super V> cls, int dim, String[] labels, V factory)
cls
- Restriction java classdim
- Dimensionalitylabels
- Labelsfactory
- Factory classMethod Detail |
---|
public boolean isAssignableFromType(TypeInformation type)
TypeInformation
isAssignableFromType
in interface TypeInformation
isAssignableFromType
in class VectorTypeInformation<V extends FeatureVector<?,?>>
type
- Other type
public int dimensionality()
public V getFactory()
public static <T extends FeatureVector<?,?>> VectorFieldTypeInformation<T> get(Class<T> cls)
T
- Typecls
- Class restriction
public static <T extends FeatureVector<?,?>> VectorFieldTypeInformation<T> get(Class<T> cls, int dim)
T
- Typecls
- Class restrictiondim
- Dimensionality (exact)
public String toString()
toString
in class VectorTypeInformation<V extends FeatureVector<?,?>>
public String getLabel(int col)
col
- Column number
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |