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 private
ProjectedFeatureVectorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description F
get(V array, int off)
Get the off'th item from the array.int
size(V array)
Get the size of the array.
-
-
-
Method Detail
-
size
public int size(V array)
Description copied from interface:ArrayAdapter
Get the size of the array.- Specified by:
size
in 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:ArrayAdapter
Get the off'th item from the array.- Specified by:
get
in 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.
-
-