
V - Vector typeF - Feature typepublic class FeatureSelection<V extends FeatureVector<F>,F> extends Object implements Projection<V,V>
| Modifier and Type | Field and Description | 
|---|---|
| protected ArrayAdapter<F,V> | adapterArray adapter. | 
| private int | dimensionalityOutput dimensionality. | 
| private FeatureVector.Factory<V,F> | factoryObject factory. | 
| private int | mindimMinimum dimensionality required for projection. | 
| Constructor and Description | 
|---|
| FeatureSelection(int[] dims,
                FeatureVector.Factory<V,F> factory)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| private static <V extends FeatureVector<F>,F>  | getAdapter(FeatureVector.Factory<V,F> factory)Choose the best adapter for this. | 
| TypeInformation | getInputDataTypeInformation()Input type information. | 
| SimpleTypeInformation<V> | getOutputDataTypeInformation()Output type restriction | 
| V | project(V data)Project a single instance. | 
private int mindim
private FeatureVector.Factory<V extends FeatureVector<F>,F> factory
private int dimensionality
protected ArrayAdapter<F,V extends FeatureVector<F>> adapter
public FeatureSelection(int[] dims,
                FeatureVector.Factory<V,F> factory)
dims - Dimensionsfactory - Object factorypublic V project(V data)
Projectionproject in interface Projection<V extends FeatureVector<F>,V extends FeatureVector<F>>data - Data to projectprivate static <V extends FeatureVector<F>,F> ArrayAdapter<F,? super V> getAdapter(FeatureVector.Factory<V,F> factory)
V - Vector typeF - Value typefactory - Object factory, for type inferencepublic SimpleTypeInformation<V> getOutputDataTypeInformation()
ProjectiongetOutputDataTypeInformation in interface Projection<V extends FeatureVector<F>,V extends FeatureVector<F>>public TypeInformation getInputDataTypeInformation()
ProjectiongetInputDataTypeInformation in interface Projection<V extends FeatureVector<F>,V extends FeatureVector<F>>