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 classFeatureSelection.Par<V extends FeatureVector<F>,F>Parameterization class.private classFeatureSelection.ProjectedFeatureVectorAdapterGeneric projection functionprivate classFeatureSelection.ProjectedNumberFeatureVectorAdapterAdapter 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 TypeInformationgetInputDataTypeInformation()Input type information.SimpleTypeInformation<V>getOutputDataTypeInformation()Output type restrictionvoidinitialize(SimpleTypeInformation<? extends V> in)InitializeVproject(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:ProjectionInitialize- Specified by:
initializein interfaceProjection<V extends FeatureVector<F>,F>- Parameters:
in- Data type to use for projecting.
-
project
public V project(V data)
Description copied from interface:ProjectionProject a single instance.- Specified by:
projectin interfaceProjection<V extends FeatureVector<F>,F>- Parameters:
data- Data to project- Returns:
- Projected data
-
getOutputDataTypeInformation
public SimpleTypeInformation<V> getOutputDataTypeInformation()
Description copied from interface:ProjectionOutput type restriction- Specified by:
getOutputDataTypeInformationin interfaceProjection<V extends FeatureVector<F>,F>- Returns:
- Output type
-
getInputDataTypeInformation
public TypeInformation getInputDataTypeInformation()
Description copied from interface:ProjectionInput type information.- Specified by:
getInputDataTypeInformationin interfaceProjection<V extends FeatureVector<F>,F>- Returns:
- Type restriction
-
-