
F - Feature typepublic class FeatureVectorAdapter<F> extends Object implements ArrayAdapter<F,FeatureVector<?,F>>
ArrayLikeUtil!| Modifier | Constructor and Description |
|---|---|
protected |
FeatureVectorAdapter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
F |
get(FeatureVector<?,F> array,
int off)
Get the off'th item from the array.
|
int |
size(FeatureVector<?,F> array)
Get the size of the array.
|
protected FeatureVectorAdapter()
ArrayLikeUtil!public int size(FeatureVector<?,F> array)
ArrayAdaptersize in interface ArrayAdapter<F,FeatureVector<?,F>>array - Array-like thingpublic F get(FeatureVector<?,F> array, int off) throws IndexOutOfBoundsException
ArrayAdapterget in interface ArrayAdapter<F,FeatureVector<?,F>>array - Array to get fromoff - OffsetIndexOutOfBoundsException - for an invalid index.