Package elki.data.projection
Class FeatureSelection.ProjectedFeatureVectorAdapter
- java.lang.Object
-
- elki.data.projection.FeatureSelection.ProjectedFeatureVectorAdapter
-
- All Implemented Interfaces:
ArrayAdapter<F,V>
- Enclosing class:
- FeatureSelection<V extends FeatureVector<F>,F>
private class FeatureSelection.ProjectedFeatureVectorAdapter extends java.lang.Object implements ArrayAdapter<F,V>
Generic projection function- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description privateProjectedFeatureVectorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fget(V array, int off)Get the off'th item from the array.intsize(V array)Get the size of the array.
-
-
-
Method Detail
-
size
public int size(V array)
Description copied from interface:ArrayAdapterGet the size of the array.- Specified by:
sizein interfaceArrayAdapter<F,V extends FeatureVector<F>>- Parameters:
array- Array-like thing- Returns:
- Size
-
get
public F get(V array, int off) throws java.lang.IndexOutOfBoundsException
Description copied from interface:ArrayAdapterGet the off'th item from the array.- Specified by:
getin interfaceArrayAdapter<F,V extends FeatureVector<F>>- Parameters:
array- Array to get fromoff- Offset- Returns:
- Item at offset off
- Throws:
java.lang.IndexOutOfBoundsException- for an invalid index.
-
-