Package elki.data.projection
Class FeatureSelection<V extends FeatureVector<F>,F>
- java.lang.Object
-
- elki.data.projection.FeatureSelection<V,F>
-
- Type Parameters:
V
- Vector typeF
- Feature type
- All Implemented Interfaces:
Projection<V,V>
public class FeatureSelection<V extends FeatureVector<F>,F> extends java.lang.Object implements Projection<V,V>
Projection class for number vectors.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FeatureSelection.Par<V extends FeatureVector<F>,F>
Parameterization class.private class
FeatureSelection.ProjectedFeatureVectorAdapter
Generic projection functionprivate class
FeatureSelection.ProjectedNumberFeatureVectorAdapter
Adapter for generating number vectors without reboxing.
-
Constructor Summary
Constructors Constructor Description FeatureSelection(int[] dims)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformation
getInputDataTypeInformation()
Input type information.SimpleTypeInformation<V>
getOutputDataTypeInformation()
Output type restrictionvoid
initialize(SimpleTypeInformation<? extends V> in)
InitializeV
project(V data)
Project a single instance.
-
-
-
Field Detail
-
mindim
private int mindim
Minimum dimensionality required for projection.
-
dims
private int[] dims
Dimensions to select.
-
factory
private FeatureVector.Factory<V extends FeatureVector<F>,F> factory
Object factory.
-
project
private java.util.function.Function<V extends FeatureVector<F>,V extends FeatureVector<F>> project
Projection lambda.
-
-
Method Detail
-
initialize
public void initialize(SimpleTypeInformation<? extends V> in)
Description copied from interface:Projection
Initialize- Specified by:
initialize
in interfaceProjection<V extends FeatureVector<F>,F>
- Parameters:
in
- Data type to use for projecting.
-
project
public V project(V data)
Description copied from interface:Projection
Project a single instance.- Specified by:
project
in interfaceProjection<V extends FeatureVector<F>,F>
- Parameters:
data
- Data to project- Returns:
- Projected data
-
getOutputDataTypeInformation
public SimpleTypeInformation<V> getOutputDataTypeInformation()
Description copied from interface:Projection
Output type restriction- Specified by:
getOutputDataTypeInformation
in interfaceProjection<V extends FeatureVector<F>,F>
- Returns:
- Output type
-
getInputDataTypeInformation
public TypeInformation getInputDataTypeInformation()
Description copied from interface:Projection
Input type information.- Specified by:
getInputDataTypeInformation
in interfaceProjection<V extends FeatureVector<F>,F>
- Returns:
- Type restriction
-
-