public interface NumberVector extends FeatureVector<java.lang.Number>, SpatialComparable
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
NumberVector.Factory<V extends NumberVector>
Factory API for this feature vector. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
ATTRIBUTE_SEPARATOR
The String to separate attribute values in a String that represents the
 values. 
 | 
static VectorFieldTypeInformation<NumberVector> | 
FIELD
Input type for algorithms that require number vector fields. 
 | 
static VectorFieldTypeInformation<NumberVector> | 
FIELD_1D
Type request for two-dimensional number vectors 
 | 
static VectorFieldTypeInformation<NumberVector> | 
FIELD_2D
Type request for two-dimensional number vectors 
 | 
static VectorTypeInformation<NumberVector> | 
VARIABLE_LENGTH
Number vectors of variable length. 
 | 
TYPE| Modifier and Type | Method and Description | 
|---|---|
default byte | 
byteValue(int dimension)
Returns the value in the specified dimension as byte. 
 | 
double | 
doubleValue(int dimension)
Returns the value in the specified dimension as double. 
 | 
default float | 
floatValue(int dimension)
Returns the value in the specified dimension as float. 
 | 
default double | 
getMax(int dimension)
Returns the maximum coordinate at the specified dimension. 
 | 
default double | 
getMin(int dimension)
Returns the minimum coordinate at the specified dimension. 
 | 
default java.lang.Number | 
getValue(int dimension)
Deprecated.  
 | 
default int | 
intValue(int dimension)
Returns the value in the specified dimension as int. 
 | 
long | 
longValue(int dimension)
Returns the value in the specified dimension as long. 
 | 
default short | 
shortValue(int dimension)
Returns the value in the specified dimension as short. 
 | 
double[] | 
toArray()
Returns a double array copy of this vector. 
 | 
getDimensionality, toStringgetDimensionalitystatic final java.lang.String ATTRIBUTE_SEPARATOR
static final VectorTypeInformation<NumberVector> VARIABLE_LENGTH
static final VectorFieldTypeInformation<NumberVector> FIELD
static final VectorFieldTypeInformation<NumberVector> FIELD_1D
static final VectorFieldTypeInformation<NumberVector> FIELD_2D
@Deprecated default java.lang.Number getValue(int dimension)
FeatureVectorgetValue in interface FeatureVector<java.lang.Number>dimension - the desired dimension, where 0 ≤ dimension ≤
        this.getDimensionality()-1default double getMin(int dimension)
SpatialComparablegetMin in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
        where 0 ≤ dimension < getDimensionality()default double getMax(int dimension)
SpatialComparablegetMax in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
        where 0 ≤ dimension < getDimensionality()double doubleValue(int dimension)
getValue(dim).doubleValue(), but usually this is much more
 efficient due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()default float floatValue(int dimension)
getValue(dim).floatValue(), but usually this is much more efficient
 due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()default int intValue(int dimension)
getValue(dim).intValue(), but usually this is much more efficient
 due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()long longValue(int dimension)
getValue(dim).longValue(), but usually this is much more efficient
 due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()default short shortValue(int dimension)
getValue(dim).shortValue(), but usually this is much more efficient
 due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()default byte byteValue(int dimension)
getValue(dim).byteValue(), but usually this is much more efficient
 due to boxing/unboxing cost.dimension - the desired dimension, where 0 ≤ dimension <
        this.getDimensionality()double[] toArray()
double[]Copyright © 2019 ELKI Development Team. License information.