V
- the type of NumberVector implemented by a subclassN
- the type of the attribute valuespublic interface NumberVector<V extends NumberVector<? extends V,N>,N extends Number> extends FeatureVector<V,N>, SpatialComparable, Parameterizable
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. |
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.
|
<A> V |
newNumberVector(A array,
NumberArrayAdapter<?,A> adapter)
Instantiate from any number-array like object.
|
V |
newNumberVector(double[] values)
Returns a new NumberVector of N for the given values.
|
short |
shortValue(int dimension)
Returns the value in the specified dimension as short.
|
getDimensionality, getValue, newFeatureVector, toString
getDimensionality, getMax, getMin
double doubleValue(int dimension)
getValue(dim).doubleValue()
, but usually this is much more
efficient due to boxing/unboxing cost.dimension
- the desired dimension, where 1 ≤ 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 1 ≤ 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 1 ≤ 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 1 ≤ 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 1 ≤ 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 1 ≤ dimension ≤
this.getDimensionality()
Vector getColumnVector()
getDimensionality()
rows the values of this NumberVector of V.getDimensionality()
rows the values of this
NumberVector of VV newNumberVector(double[] values)
values
- the values of the NumberVector<A> V newNumberVector(A array, NumberArrayAdapter<?,A> adapter)
A
- Array typearray
- Arrayadapter
- Adapter