Package elki.data.type
Class TypeUtil
- java.lang.Object
-
- elki.data.type.TypeUtil
-
public final class TypeUtil extends java.lang.ObjectUtility 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>ANYInput type for algorithms that accept anything.static VectorTypeInformation<BitVector>BIT_VECTORInput type for algorithms that require bit vectors.static VectorFieldTypeInformation<BitVector>BIT_VECTOR_FIELDInput type for algorithms that require bit vector fields.static SimpleTypeInformation<ClassLabel>CLASSLABELA class label.static SimpleTypeInformation<DBID>DBIDDatabase IDs.static SimpleTypeInformation<DBIDs>DBIDSDatabase ID lists (but not single DBIDs).static SimpleTypeInformation<java.lang.Double>DOUBLEDouble type, outlier scores etc.static SimpleTypeInformation<double[]>DOUBLE_ARRAYDouble array objects (do not use for input data points).static VectorFieldTypeInformation<DoubleVector>DOUBLE_VECTOR_FIELDInput type for algorithms that require number vector fields.static SimpleTypeInformation<ExternalID>EXTERNALIDExternal ID type.static VectorTypeInformation<FeatureVector<?>>FEATURE_VECTORSAny feature vector type.static VectorFieldTypeInformation<FloatVector>FLOAT_VECTOR_FIELDInput type for algorithms that require number vector fields.static TypeInformationGUESSED_LABELEither class label, object labels or a string - anything that will be accepted byDatabaseUtil.guessObjectLabelRepresentation(elki.database.Database).static SimpleTypeInformation<java.lang.Integer>INTEGERInteger type.static SimpleTypeInformation<int[]>INTEGER_ARRAYInteger array objects.static SimpleTypeInformation<KNNList>KNNLISTKNN lists.static SimpleTypeInformation<LabelList>LABELLISTA list of labels.static SimpleTypeInformation<double[][]>MATRIXMatrix type.static MultivariateSeriesTypeInformation<NumberVector>MULTIVARIATE_SERIESType request for multivariate time series.static SimpleTypeInformation<DoubleDBIDList>NEIGHBORLISTA list of neighbors.static VectorFieldTypeInformation<NumberVector>NUMBER_VECTOR_FIELDInput type for algorithms that require number vector fields.static VectorFieldTypeInformation<? super NumberVector>NUMBER_VECTOR_FIELD_1DType request for two-dimensional number vectorsstatic VectorFieldTypeInformation<? super NumberVector>NUMBER_VECTOR_FIELD_2DType request for two-dimensional number vectorsstatic VectorTypeInformation<NumberVector>NUMBER_VECTOR_VARIABLE_LENGTHNumber vectors of variable length.static SimpleTypeInformation<PolygonsObject>POLYGON_TYPEType for polygons.static SimpleTypeInformation<SimpleClassLabel>SIMPLE_CLASSLABELSimple class labels.static VectorFieldTypeInformation<SparseDoubleVector>SPARSE_DOUBLE_FIELDSparse double vector field.static VectorFieldTypeInformation<SparseFloatVector>SPARSE_FLOAT_FIELDSparse float vector field.static VectorFieldTypeInformation<SparseNumberVector>SPARSE_VECTOR_FIELDSparse vector field.static VectorTypeInformation<SparseNumberVector>SPARSE_VECTOR_VARIABLE_LENGTHSparse float vector field.static SimpleTypeInformation<SpatialComparable>SPATIAL_OBJECTSpatial objects.static SimpleTypeInformation<java.lang.String>STRINGA string.
-
Constructor Summary
Constructors Modifier Constructor Description privateTypeUtil()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_FIELDinstead!
-
SPARSE_DOUBLE_FIELD
public static final VectorFieldTypeInformation<SparseDoubleVector> SPARSE_DOUBLE_FIELD
Sparse double vector field. If possible, please useSPARSE_VECTOR_FIELDinstead!
-
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
-
-