A
- Array typeprivate static class LMomentsEstimator.ReverseAdapter<A> extends java.lang.Object implements NumberArrayAdapter<java.lang.Double,A>
Modifier and Type | Field and Description |
---|---|
private NumberArrayAdapter<?,? super A> |
inner
Adapter class.
|
private int |
last
Size and last element.
|
private int |
size
Size and last element.
|
Constructor and Description |
---|
ReverseAdapter(NumberArrayAdapter<?,? super A> inner,
int begin,
int end)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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 size
private int last
private NumberArrayAdapter<?,? super A> inner
public ReverseAdapter(NumberArrayAdapter<?,? super A> inner, int begin, int end)
inner
- Inner adapterbegin
- Beginend
- End of the arraypublic int size(A array)
ArrayAdapter
size
in interface ArrayAdapter<java.lang.Double,A>
size
in interface NumberArrayAdapter<java.lang.Double,A>
array
- Array-like thingpublic java.lang.Double get(A array, int off) throws java.lang.IndexOutOfBoundsException
ArrayAdapter
get
in interface ArrayAdapter<java.lang.Double,A>
get
in interface NumberArrayAdapter<java.lang.Double,A>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public double getDouble(A array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getDouble
in interface NumberArrayAdapter<java.lang.Double,A>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public float getFloat(A array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getFloat
in interface NumberArrayAdapter<java.lang.Double,A>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public int getInteger(A array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getInteger
in interface NumberArrayAdapter<java.lang.Double,A>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public short getShort(A array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getShort
in interface NumberArrayAdapter<java.lang.Double,A>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public long getLong(A array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getLong
in interface NumberArrayAdapter<java.lang.Double,A>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.public byte getByte(A array, int off) throws java.lang.IndexOutOfBoundsException
NumberArrayAdapter
getByte
in interface NumberArrayAdapter<java.lang.Double,A>
array
- Array to get fromoff
- Offsetjava.lang.IndexOutOfBoundsException
- for an invalid index.Copyright © 2019 ELKI Development Team. License information.