A
- Array typeprivate static class LMomentsEstimator.ReverseAdapter<A> extends Object implements NumberArrayAdapter<Double,A>
Modifier and Type | Field and Description |
---|---|
private NumberArrayAdapter<?,A> |
inner
Adapter class.
|
private int |
s
Last element
|
Constructor and Description |
---|
LMomentsEstimator.ReverseAdapter(NumberArrayAdapter<?,A> inner,
int size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Double |
get(A array,
int off)
Get the off'th item from the array.
|
byte |
getByte(A array,
int off)
Get the off'th item from the array as byte.
|
double |
getDouble(A array,
int off)
Get the off'th item from the array as double.
|
float |
getFloat(A array,
int off)
Get the off'th item from the array as float.
|
int |
getInteger(A array,
int off)
Get the off'th item from the array as integer.
|
long |
getLong(A array,
int off)
Get the off'th item from the array as long.
|
short |
getShort(A array,
int off)
Get the off'th item from the array as short.
|
int |
size(A array)
Get the size of the array.
|
private int s
private NumberArrayAdapter<?,A> inner
public LMomentsEstimator.ReverseAdapter(NumberArrayAdapter<?,A> inner, int size)
inner
- Inner adaptersize
- Size of array.public int size(A array)
ArrayAdapter
size
in interface ArrayAdapter<Double,A>
size
in interface NumberArrayAdapter<Double,A>
array
- Array-like thingpublic Double get(A array, int off) throws IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<Double,A>
get
in interface NumberArrayAdapter<Double,A>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public double getDouble(A array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getDouble
in interface NumberArrayAdapter<Double,A>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public float getFloat(A array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getFloat
in interface NumberArrayAdapter<Double,A>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public int getInteger(A array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getInteger
in interface NumberArrayAdapter<Double,A>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public short getShort(A array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getShort
in interface NumberArrayAdapter<Double,A>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public long getLong(A array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getLong
in interface NumberArrayAdapter<Double,A>
array
- Array to get fromoff
- OffsetIndexOutOfBoundsException
- for an invalid index.public byte getByte(A array, int off) throws IndexOutOfBoundsException
NumberArrayAdapter
getByte
in interface NumberArrayAdapter<Double,A>
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.