public class NumberVectorAdapter extends Object implements NumberArrayAdapter<Number,NumberVector>
ArrayLikeUtil
!Modifier | Constructor and Description |
---|---|
protected |
NumberVectorAdapter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Number |
get(NumberVector array,
int off)
Deprecated.
|
byte |
getByte(NumberVector array,
int off)
Get the off'th item from the array as byte.
|
double |
getDouble(NumberVector array,
int off)
Get the off'th item from the array as double.
|
float |
getFloat(NumberVector array,
int off)
Get the off'th item from the array as float.
|
int |
getInteger(NumberVector array,
int off)
Get the off'th item from the array as integer.
|
long |
getLong(NumberVector array,
int off)
Get the off'th item from the array as long.
|
short |
getShort(NumberVector array,
int off)
Get the off'th item from the array as short.
|
int |
size(NumberVector array)
Get the size of the array.
|
protected NumberVectorAdapter()
ArrayLikeUtil
!public int size(NumberVector array)
ArrayAdapter
size
in interface ArrayAdapter<Number,NumberVector>
size
in interface NumberArrayAdapter<Number,NumberVector>
array
- Array-like thing@Deprecated public Number get(NumberVector array, int off) throws IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<Number,NumberVector>
get
in interface NumberArrayAdapter<Number,NumberVector>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public double getDouble(NumberVector array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getDouble
in interface NumberArrayAdapter<Number,NumberVector>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public float getFloat(NumberVector array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getFloat
in interface NumberArrayAdapter<Number,NumberVector>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public int getInteger(NumberVector array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getInteger
in interface NumberArrayAdapter<Number,NumberVector>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public short getShort(NumberVector array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getShort
in interface NumberArrayAdapter<Number,NumberVector>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public long getLong(NumberVector array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getLong
in interface NumberArrayAdapter<Number,NumberVector>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public byte getByte(NumberVector array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getByte
in interface NumberArrayAdapter<Number,NumberVector>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.