
N - the type of the attribute valuespublic interface NumberVector<N extends Number> extends FeatureVector<N>, SpatialComparable
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
NumberVector.Factory<V extends NumberVector<? extends N>,N extends Number>
Factory API for this feature vector. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
float | 
floatValue(int dimension)
Returns the value in the specified dimension as float. 
 | 
Vector | 
getColumnVector()
Returns a Vector representing in one column and
  
getDimensionality() rows the values of this NumberVector of V. | 
N | 
getValue(int dimension)
Deprecated.  
 | 
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. 
 | 
short | 
shortValue(int dimension)
Returns the value in the specified dimension as short. 
 | 
getDimensionality, toStringgetDimensionality, getMax, getMin@Deprecated N getValue(int dimension)
FeatureVectorgetValue in interface FeatureVector<N extends Number>dimension - the desired dimension, where 0 ≤ dimension ≤
        this.getDimensionality()-1double 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()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()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()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()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()Vector getColumnVector()
getDimensionality() rows the values of this NumberVector of V.getDimensionality() rows the values of this
         NumberVector of V