Package elki.data.type
Class TypeUtil
- java.lang.Object
-
- elki.data.type.TypeUtil
-
public final class TypeUtil extends java.lang.Object
Utility package containing various common types.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleTypeInformation<java.lang.Object>
ANY
Input type for algorithms that accept anything.static VectorTypeInformation<BitVector>
BIT_VECTOR
Input type for algorithms that require bit vectors.static VectorFieldTypeInformation<BitVector>
BIT_VECTOR_FIELD
Input type for algorithms that require bit vector fields.static SimpleTypeInformation<ClassLabel>
CLASSLABEL
A class label.static SimpleTypeInformation<DBID>
DBID
Database IDs.static SimpleTypeInformation<DBIDs>
DBIDS
Database ID lists (but not single DBIDs).static SimpleTypeInformation<java.lang.Double>
DOUBLE
Double type, outlier scores etc.static SimpleTypeInformation<double[]>
DOUBLE_ARRAY
Double array objects (do not use for input data points).static VectorFieldTypeInformation<DoubleVector>
DOUBLE_VECTOR_FIELD
Input type for algorithms that require number vector fields.static SimpleTypeInformation<ExternalID>
EXTERNALID
External ID type.static VectorTypeInformation<FeatureVector<?>>
FEATURE_VECTORS
Any feature vector type.static VectorFieldTypeInformation<FloatVector>
FLOAT_VECTOR_FIELD
Input type for algorithms that require number vector fields.static TypeInformation
GUESSED_LABEL
Either class label, object labels or a string - anything that will be accepted byDatabaseUtil.guessObjectLabelRepresentation(elki.database.Database)
.static SimpleTypeInformation<java.lang.Integer>
INTEGER
Integer type.static SimpleTypeInformation<int[]>
INTEGER_ARRAY
Integer array objects.static SimpleTypeInformation<KNNList>
KNNLIST
KNN lists.static SimpleTypeInformation<LabelList>
LABELLIST
A list of labels.static SimpleTypeInformation<double[][]>
MATRIX
Matrix type.static MultivariateSeriesTypeInformation<NumberVector>
MULTIVARIATE_SERIES
Type request for multivariate time series.static SimpleTypeInformation<DoubleDBIDList>
NEIGHBORLIST
A list of neighbors.static VectorFieldTypeInformation<NumberVector>
NUMBER_VECTOR_FIELD
Input type for algorithms that require number vector fields.static VectorFieldTypeInformation<? super NumberVector>
NUMBER_VECTOR_FIELD_1D
Type request for two-dimensional number vectorsstatic VectorFieldTypeInformation<? super NumberVector>
NUMBER_VECTOR_FIELD_2D
Type request for two-dimensional number vectorsstatic VectorTypeInformation<NumberVector>
NUMBER_VECTOR_VARIABLE_LENGTH
Number vectors of variable length.static SimpleTypeInformation<PolygonsObject>
POLYGON_TYPE
Type for polygons.static SimpleTypeInformation<SimpleClassLabel>
SIMPLE_CLASSLABEL
Simple class labels.static VectorFieldTypeInformation<SparseDoubleVector>
SPARSE_DOUBLE_FIELD
Sparse double vector field.static VectorFieldTypeInformation<SparseFloatVector>
SPARSE_FLOAT_FIELD
Sparse float vector field.static VectorFieldTypeInformation<SparseNumberVector>
SPARSE_VECTOR_FIELD
Sparse vector field.static VectorTypeInformation<SparseNumberVector>
SPARSE_VECTOR_VARIABLE_LENGTH
Sparse float vector field.static SimpleTypeInformation<SpatialComparable>
SPATIAL_OBJECT
Spatial objects.static SimpleTypeInformation<java.lang.String>
STRING
A string.
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeUtil()
Fake Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeInformation[]
array(TypeInformation... ts)
Make a type array easily.
-
-
-
Field Detail
-
ANY
public static final SimpleTypeInformation<java.lang.Object> ANY
Input type for algorithms that accept anything.
-
DBID
public static final SimpleTypeInformation<DBID> DBID
Database IDs.
-
DBIDS
public static final SimpleTypeInformation<DBIDs> DBIDS
Database ID lists (but not single DBIDs).
-
STRING
public static final SimpleTypeInformation<java.lang.String> STRING
A string.
-
CLASSLABEL
public static final SimpleTypeInformation<ClassLabel> CLASSLABEL
A class label.
-
SIMPLE_CLASSLABEL
public static final SimpleTypeInformation<SimpleClassLabel> SIMPLE_CLASSLABEL
Simple class labels.
-
LABELLIST
public static final SimpleTypeInformation<LabelList> LABELLIST
A list of labels.
-
NEIGHBORLIST
public static final SimpleTypeInformation<DoubleDBIDList> NEIGHBORLIST
A list of neighbors.
-
GUESSED_LABEL
public static final TypeInformation GUESSED_LABEL
Either class label, object labels or a string - anything that will be accepted byDatabaseUtil.guessObjectLabelRepresentation(elki.database.Database)
.
-
NUMBER_VECTOR_VARIABLE_LENGTH
public static final VectorTypeInformation<NumberVector> NUMBER_VECTOR_VARIABLE_LENGTH
Number vectors of variable length.
-
NUMBER_VECTOR_FIELD
public static final VectorFieldTypeInformation<NumberVector> NUMBER_VECTOR_FIELD
Input type for algorithms that require number vector fields.
-
NUMBER_VECTOR_FIELD_1D
public static final VectorFieldTypeInformation<? super NumberVector> NUMBER_VECTOR_FIELD_1D
Type request for two-dimensional number vectors
-
NUMBER_VECTOR_FIELD_2D
public static final VectorFieldTypeInformation<? super NumberVector> NUMBER_VECTOR_FIELD_2D
Type request for two-dimensional number vectors
-
MULTIVARIATE_SERIES
public static final MultivariateSeriesTypeInformation<NumberVector> MULTIVARIATE_SERIES
Type request for multivariate time series.
-
DOUBLE_VECTOR_FIELD
public static final VectorFieldTypeInformation<DoubleVector> DOUBLE_VECTOR_FIELD
Input type for algorithms that require number vector fields. If possible, please useNUMBER_VECTOR_FIELD
!
-
FLOAT_VECTOR_FIELD
public static final VectorFieldTypeInformation<FloatVector> FLOAT_VECTOR_FIELD
Input type for algorithms that require number vector fields. If possible, please useNUMBER_VECTOR_FIELD
!
-
BIT_VECTOR
public static final VectorTypeInformation<BitVector> BIT_VECTOR
Input type for algorithms that require bit vectors.
-
BIT_VECTOR_FIELD
public static final VectorFieldTypeInformation<BitVector> BIT_VECTOR_FIELD
Input type for algorithms that require bit vector fields.
-
SPARSE_VECTOR_VARIABLE_LENGTH
public static final VectorTypeInformation<SparseNumberVector> SPARSE_VECTOR_VARIABLE_LENGTH
Sparse float vector field.
-
SPARSE_VECTOR_FIELD
public static final VectorFieldTypeInformation<SparseNumberVector> SPARSE_VECTOR_FIELD
Sparse vector field.
-
SPARSE_FLOAT_FIELD
public static final VectorFieldTypeInformation<SparseFloatVector> SPARSE_FLOAT_FIELD
Sparse float vector field. If possible, please useSPARSE_VECTOR_FIELD
instead!
-
SPARSE_DOUBLE_FIELD
public static final VectorFieldTypeInformation<SparseDoubleVector> SPARSE_DOUBLE_FIELD
Sparse double vector field. If possible, please useSPARSE_VECTOR_FIELD
instead!
-
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<java.lang.Double> DOUBLE
Double type, outlier scores etc.
-
INTEGER
public static final SimpleTypeInformation<java.lang.Integer> INTEGER
Integer type.
-
DOUBLE_ARRAY
public static final SimpleTypeInformation<double[]> DOUBLE_ARRAY
Double array objects (do not use for input data points).
-
INTEGER_ARRAY
public static final SimpleTypeInformation<int[]> INTEGER_ARRAY
Integer array objects.
-
MATRIX
public static final SimpleTypeInformation<double[][]> MATRIX
Matrix type.
-
FEATURE_VECTORS
public static final VectorTypeInformation<FeatureVector<?>> FEATURE_VECTORS
Any feature vector type.
-
SPATIAL_OBJECT
public static final SimpleTypeInformation<SpatialComparable> SPATIAL_OBJECT
Spatial objects.
-
KNNLIST
public static final SimpleTypeInformation<KNNList> KNNLIST
KNN lists.
-
-
Method Detail
-
array
public static TypeInformation[] array(TypeInformation... ts)
Make a type array easily.- Parameters:
ts
- Types- Returns:
- array
-
-