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 class
NumericalFeatureSelection.Par<V extends NumberVector>
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private int[]
dims
Subspace.private NumberVector.Factory<V>
factory
Object factory.private int
mindim
Minimum 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 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.
-
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:Projection
Initialize- Specified by:
initialize
in 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:Projection
Project a single instance.- Specified by:
project
in interfaceProjection<V extends NumberVector,V extends NumberVector>
- 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 NumberVector,V extends NumberVector>
- Returns:
- Output type
-
getInputDataTypeInformation
public TypeInformation getInputDataTypeInformation()
Description copied from interface:Projection
Input type information.- Specified by:
getInputDataTypeInformation
in interfaceProjection<V extends NumberVector,V extends NumberVector>
- Returns:
- Type restriction
-
-