Package elki.data.projection
Class NumericalFeatureSelection<V extends NumberVector>
- java.lang.Object
-
- elki.data.projection.NumericalFeatureSelection<V>
-
- Type Parameters:
V- Vector type
- All Implemented Interfaces:
Projection<V,V>
public class NumericalFeatureSelection<V extends NumberVector> 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 classNumericalFeatureSelection.Par<V extends NumberVector>Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private int[]dimsSubspace.private NumberVector.Factory<V>factoryObject factory.private intmindimMinimum dimensionality required for projection.
-
Constructor Summary
Constructors Constructor Description NumericalFeatureSelection(int[] dims)Constructor.NumericalFeatureSelection(long[] bits)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.
-
factory
private NumberVector.Factory<V extends NumberVector> factory
Object factory.
-
dims
private int[] dims
Subspace.
-
-
Method Detail
-
initialize
public void initialize(SimpleTypeInformation<? extends V> in)
Description copied from interface:ProjectionInitialize- Specified by:
initializein interfaceProjection<V extends NumberVector,V extends NumberVector>- 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 NumberVector,V extends NumberVector>- 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 NumberVector,V extends NumberVector>- Returns:
- Output type
-
getInputDataTypeInformation
public TypeInformation getInputDataTypeInformation()
Description copied from interface:ProjectionInput type information.- Specified by:
getInputDataTypeInformationin interfaceProjection<V extends NumberVector,V extends NumberVector>- Returns:
- Type restriction
-
-