| 
  | 
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.data.AbstractDatabaseObject
de.lmu.ifi.dbs.elki.data.AbstractNumberVector<V,N>
V - the concrete type of this AbstractNumberVectorN - the type of number, this AbstractNumberVector consists of (i.e., a
        AbstractNumberVector v of type V and dimensionality d
        is an element of Nd)public abstract class AbstractNumberVector<V extends AbstractNumberVector<V,N>,N extends Number>
AbstractNumberVector is an abstract implementation of FeatureVector. Provided is an
 attribute separator (space), and the ID-methods as required for a
 DatabaseObject. The equals-method is implemented dynamically for all
 subclasses to satisfy the requirements as defined in
 DatabaseObject.equals(Object). It needs
 not to be overwritten except for sake of efficiency.
| Field Summary | |
|---|---|
static String | 
ATTRIBUTE_SEPARATOR
The String to separate attribute values in a String that represents the values.  | 
| Constructor Summary | |
|---|---|
AbstractNumberVector()
 | 
|
| Method Summary | |
|---|---|
 byte | 
byteValue(int dimension)
Returns the value in the specified dimension as byte.  | 
 boolean | 
equals(Object obj)
An Object obj is equal to this AbstractNumberVector if it is an instance of the same runtime class and is of the identical dimensionality and the values of this AbstractNumberVector are equal to the values of obj in all dimensions, respectively.  | 
 float | 
floatValue(int dimension)
Returns the value in the specified dimension as float.  | 
 double | 
getMax(int dimension)
Get Maximum - implementation of the SpatialComparable interface  | 
 double | 
getMin(int dimension)
Get Minimum - implementation of the SpatialComparable interface  | 
 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.  | 
| Methods inherited from class de.lmu.ifi.dbs.elki.data.AbstractDatabaseObject | 
|---|
getID, setID | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface de.lmu.ifi.dbs.elki.data.NumberVector | 
|---|
doubleValue, getColumnVector, getRowVector, longValue, minus, multiplicate, negativeVector, newInstance, newInstance, nullVector, plus, randomInstance, randomInstance, randomInstance, scalarProduct | 
| Methods inherited from interface de.lmu.ifi.dbs.elki.data.FeatureVector | 
|---|
getDimensionality, getValue, newInstance, newInstance, toString | 
| Methods inherited from interface de.lmu.ifi.dbs.elki.data.DatabaseObject | 
|---|
getID, setID | 
| Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialObject | 
|---|
getID | 
| Methods inherited from interface de.lmu.ifi.dbs.elki.index.tree.spatial.SpatialComparable | 
|---|
getDimensionality | 
| Field Detail | 
|---|
public static final String ATTRIBUTE_SEPARATOR
| Constructor Detail | 
|---|
public AbstractNumberVector()
| Method Detail | 
|---|
public boolean equals(Object obj)
equals in interface DatabaseObjectequals in class Objectobj - another Object
public double getMin(int dimension)
getMin in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
                  where 1 ≤ dimension ≤ getDimensionality()
NumberVector.doubleValue(int)public double getMax(int dimension)
getMax in interface SpatialComparabledimension - the dimension for which the coordinate should be returned,
                  where 1 ≤ dimension ≤ getDimensionality()
NumberVector.doubleValue(int)public byte byteValue(int dimension)
NumberVectorgetValue(dim).byteValue(), but
 usually this is much more efficient due to boxing/unboxing cost.
byteValue in interface NumberVector<V extends AbstractNumberVector<V,N>,N extends Number>dimension - the desired dimension, where 1 ≤ dimension ≤
        this.getDimensionality()
public float floatValue(int dimension)
NumberVectorgetValue(dim).floatValue(), but
 usually this is much more efficient due to boxing/unboxing cost.
floatValue in interface NumberVector<V extends AbstractNumberVector<V,N>,N extends Number>dimension - the desired dimension, where 1 ≤ dimension ≤
        this.getDimensionality()
public int intValue(int dimension)
NumberVectorgetValue(dim).intValue(), but
 usually this is much more efficient due to boxing/unboxing cost.
intValue in interface NumberVector<V extends AbstractNumberVector<V,N>,N extends Number>dimension - the desired dimension, where 1 ≤ dimension ≤
        this.getDimensionality()
public short shortValue(int dimension)
NumberVectorgetValue(dim).shortValue(), but
 usually this is much more efficient due to boxing/unboxing cost.
shortValue in interface NumberVector<V extends AbstractNumberVector<V,N>,N extends Number>dimension - the desired dimension, where 1 ≤ dimension ≤
        this.getDimensionality()
  | 
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||