de.lmu.ifi.dbs.elki.data.type
Class TypeUtil

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.type.TypeUtil

public final class TypeUtil
extends Object

Utility package containing various common types


Field Summary
static SimpleTypeInformation<Object> ANY
          Input type for algorithms that accept anything
static VectorFieldTypeInformation<BitVector> BIT_VECTOR_FIELD
          Input type for algorithms that require number vector fields.
static SimpleTypeInformation<ClassLabel> CLASSLABEL
          A class label
static SimpleTypeInformation<DBID> DBID
          Database IDs
static SimpleTypeInformation<Double> DOUBLE
          Double type, outlier scores etc.
static VectorFieldTypeInformation<DoubleVector> DOUBLE_VECTOR_FIELD
          Input type for algorithms that require number vector fields.
static SimpleTypeInformation<ExternalID> EXTERNALID
          External ID type
static TypeInformation GUESSED_LABEL
          Either class label, object labels or a string - anything that will be accepted by DatabaseUtil.guessObjectLabelRepresentation(de.lmu.ifi.dbs.elki.database.Database)
static SimpleTypeInformation<Integer> INTEGER
          Integer type.
static SimpleTypeInformation<LabelList> LABELLIST
          A list of labels.
static SimpleTypeInformation<Matrix> MATRIX
          Matrix type.
static VectorFieldTypeInformation<NumberVector<?,?>> NUMBER_VECTOR_FIELD
          Input type for algorithms that require number vector fields.
static SimpleTypeInformation<PolygonsObject> POLYGON_TYPE
          Type for polygons
static VectorFieldTypeInformation<SparseFloatVector> SPARSE_FLOAT_FIELD
          Sparse float vector field.
static SimpleTypeInformation<String> STRING
          A string
static SimpleTypeInformation<Vector> VECTOR
          Vector type.
 
Constructor Summary
TypeUtil()
           
 
Method Summary
static TypeInformation[] array(TypeInformation... ts)
          Make a type array easily.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

public static final SimpleTypeInformation<Object> ANY
Input type for algorithms that accept anything


DBID

public static final SimpleTypeInformation<DBID> DBID
Database IDs


STRING

public static final SimpleTypeInformation<String> STRING
A string


CLASSLABEL

public static final SimpleTypeInformation<ClassLabel> CLASSLABEL
A class label


LABELLIST

public static final SimpleTypeInformation<LabelList> LABELLIST
A list of labels.


GUESSED_LABEL

public static final TypeInformation GUESSED_LABEL
Either class label, object labels or a string - anything that will be accepted by DatabaseUtil.guessObjectLabelRepresentation(de.lmu.ifi.dbs.elki.database.Database)


NUMBER_VECTOR_FIELD

public static final VectorFieldTypeInformation<NumberVector<?,?>> NUMBER_VECTOR_FIELD
Input type for algorithms that require number vector fields.


DOUBLE_VECTOR_FIELD

public static final VectorFieldTypeInformation<DoubleVector> DOUBLE_VECTOR_FIELD
Input type for algorithms that require number vector fields. If possible, please use NUMBER_VECTOR_FIELD!


BIT_VECTOR_FIELD

public static final VectorFieldTypeInformation<BitVector> BIT_VECTOR_FIELD
Input type for algorithms that require number vector fields.


SPARSE_FLOAT_FIELD

public static final VectorFieldTypeInformation<SparseFloatVector> SPARSE_FLOAT_FIELD
Sparse float vector field.


EXTERNALID

public static final SimpleTypeInformation<ExternalID> EXTERNALID
External ID type


POLYGON_TYPE

public static final SimpleTypeInformation<PolygonsObject> POLYGON_TYPE
Type for polygons


DOUBLE

public static final SimpleTypeInformation<Double> DOUBLE
Double type, outlier scores etc.


INTEGER

public static final SimpleTypeInformation<Integer> INTEGER
Integer type.


VECTOR

public static final SimpleTypeInformation<Vector> VECTOR
Vector type.


MATRIX

public static final SimpleTypeInformation<Matrix> MATRIX
Matrix type.

Constructor Detail

TypeUtil

public TypeUtil()
Method Detail

array

public static final TypeInformation[] array(TypeInformation... ts)
Make a type array easily.

Parameters:
ts - Types
Returns:
array

Release 0.4.0 (2011-09-20_1324)