public abstract class AbstractNumberVector extends Object implements NumberVector
Modifier and Type | Class and Description |
---|---|
static class |
AbstractNumberVector.Factory<V extends AbstractNumberVector>
Factory class.
|
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_SEPARATOR
The String to separate attribute values in a String that represents the
values.
|
Constructor and Description |
---|
AbstractNumberVector() |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue(int dimension)
Returns the value in the specified dimension as byte.
|
float |
floatValue(int dimension)
Returns the value in the specified dimension as float.
|
double |
getMax(int dimension)
Returns the maximum coordinate at the specified dimension.
|
double |
getMin(int dimension)
Returns the minimum coordinate at the specified dimension.
|
int |
intValue(int dimension)
Returns the value in the specified dimension as int.
|
short |
shortValue(int dimension)
Returns the value in the specified dimension as short.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doubleValue, getColumnVector, getValue, longValue
getDimensionality, toString
getDimensionality
public static final String ATTRIBUTE_SEPARATOR
public double getMin(int dimension)
SpatialComparable
getMin
in interface SpatialComparable
dimension
- the dimension for which the coordinate should be returned,
where 0 ≤ dimension < getDimensionality()
public double getMax(int dimension)
SpatialComparable
getMax
in interface SpatialComparable
dimension
- the dimension for which the coordinate should be returned,
where 0 ≤ dimension < getDimensionality()
public byte byteValue(int dimension)
NumberVector
getValue(dim).byteValue()
, but usually this is much more efficient
due to boxing/unboxing cost.byteValue
in interface NumberVector
dimension
- the desired dimension, where 0 ≤ dimension <
this.getDimensionality()
public float floatValue(int dimension)
NumberVector
getValue(dim).floatValue()
, but usually this is much more efficient
due to boxing/unboxing cost.floatValue
in interface NumberVector
dimension
- the desired dimension, where 0 ≤ dimension <
this.getDimensionality()
public int intValue(int dimension)
NumberVector
getValue(dim).intValue()
, but usually this is much more efficient
due to boxing/unboxing cost.intValue
in interface NumberVector
dimension
- the desired dimension, where 0 ≤ dimension <
this.getDimensionality()
public short shortValue(int dimension)
NumberVector
getValue(dim).shortValue()
, but usually this is much more efficient
due to boxing/unboxing cost.shortValue
in interface NumberVector
dimension
- the desired dimension, where 0 ≤ dimension <
this.getDimensionality()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.