
public class VectorAdapter extends Object implements NumberArrayAdapter<Double,Vector>
ArrayLikeUtil!| Modifier | Constructor and Description |
|---|---|
protected |
VectorAdapter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
get(Vector array,
int off)
Deprecated.
|
byte |
getByte(Vector array,
int off)
Get the off'th item from the array as byte.
|
double |
getDouble(Vector array,
int off)
Get the off'th item from the array as double.
|
float |
getFloat(Vector array,
int off)
Get the off'th item from the array as float.
|
int |
getInteger(Vector array,
int off)
Get the off'th item from the array as integer.
|
long |
getLong(Vector array,
int off)
Get the off'th item from the array as long.
|
short |
getShort(Vector array,
int off)
Get the off'th item from the array as short.
|
int |
size(Vector array)
Get the size of the array.
|
protected VectorAdapter()
ArrayLikeUtil!public int size(Vector array)
ArrayAdaptersize in interface ArrayAdapter<Double,Vector>size in interface NumberArrayAdapter<Double,Vector>array - Array-like thing@Deprecated public Double get(Vector array, int off) throws IndexOutOfBoundsException
ArrayAdapterget in interface ArrayAdapter<Double,Vector>get in interface NumberArrayAdapter<Double,Vector>array - Array to get fromoff - OffsetIndexOutOfBoundsException - for an invalid index.public double getDouble(Vector array, int off) throws IndexOutOfBoundsException
NumberArrayAdaptergetDouble in interface NumberArrayAdapter<Double,Vector>array - Array to get fromoff - OffsetIndexOutOfBoundsException - for an invalid index.public float getFloat(Vector array, int off) throws IndexOutOfBoundsException
NumberArrayAdaptergetFloat in interface NumberArrayAdapter<Double,Vector>array - Array to get fromoff - OffsetIndexOutOfBoundsException - for an invalid index.public int getInteger(Vector array, int off) throws IndexOutOfBoundsException
NumberArrayAdaptergetInteger in interface NumberArrayAdapter<Double,Vector>array - Array to get fromoff - OffsetIndexOutOfBoundsException - for an invalid index.public short getShort(Vector array, int off) throws IndexOutOfBoundsException
NumberArrayAdaptergetShort in interface NumberArrayAdapter<Double,Vector>array - Array to get fromoff - OffsetIndexOutOfBoundsException - for an invalid index.public long getLong(Vector array, int off) throws IndexOutOfBoundsException
NumberArrayAdaptergetLong in interface NumberArrayAdapter<Double,Vector>array - Array to get fromoff - OffsetIndexOutOfBoundsException - for an invalid index.public byte getByte(Vector array, int off) throws IndexOutOfBoundsException
NumberArrayAdaptergetByte in interface NumberArrayAdapter<Double,Vector>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.