
V - Vector typepublic class NumberVectorFeatureSelectionFilter<V extends NumberVector<?>> extends AbstractVectorStreamConversionFilter<V,V>
Parser to project the ParsingResult obtained by a suitable base parser onto a selected subset of attributes.
| Modifier and Type | Class and Description |
|---|---|
static class |
NumberVectorFeatureSelectionFilter.Parameterizer
Parameterization class.
|
BundleStreamSource.Event| Modifier and Type | Field and Description |
|---|---|
private BitSet |
selectedAttributes
Keeps the selection of the subspace to project onto.
|
factorysource| Constructor and Description |
|---|
NumberVectorFeatureSelectionFilter(BitSet selectedAttributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SimpleTypeInformation<? super V> |
convertedType(SimpleTypeInformation<V> in)
Get the output type from the input type after conversion.
|
protected V |
filterSingleObject(V obj)
Normalize a single instance.
|
int |
getDimensionality()
Get the resulting dimensionality.
|
protected SimpleTypeInformation<? super V> |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
BitSet |
getSelectedAttributes()
Provides a BitSet with the bits set to true corresponding to the selected
attributes in
NumberVectorFeatureSelectionFilter.Parameterizer.SELECTED_ATTRIBUTES_ID. |
void |
setSelectedAttributes(BitSet selectedAttributes)
Sets the bits set to true in the given BitSet as selected attributes in
NumberVectorFeatureSelectionFilter.Parameterizer.SELECTED_ATTRIBUTES_ID. |
initializeOutputTypedata, getMeta, nextEventfilter, initprivate BitSet selectedAttributes
public NumberVectorFeatureSelectionFilter(BitSet selectedAttributes)
selectedAttributes - Selected attributesprotected V filterSingleObject(V obj)
AbstractStreamConversionFilterfilterSingleObject in class AbstractStreamConversionFilter<V extends NumberVector<?>,V extends NumberVector<?>>obj - Database object to normalizeprotected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractStreamConversionFiltergetInputTypeRestriction in class AbstractStreamConversionFilter<V extends NumberVector<?>,V extends NumberVector<?>>protected SimpleTypeInformation<? super V> convertedType(SimpleTypeInformation<V> in)
AbstractStreamConversionFilterconvertedType in class AbstractStreamConversionFilter<V extends NumberVector<?>,V extends NumberVector<?>>in - input type restrictionpublic void setSelectedAttributes(BitSet selectedAttributes)
Sets the bits set to true in the given BitSet as selected attributes in
NumberVectorFeatureSelectionFilter.Parameterizer.SELECTED_ATTRIBUTES_ID.
selectedAttributes - the new selected attributespublic BitSet getSelectedAttributes()
Provides a BitSet with the bits set to true corresponding to the selected
attributes in NumberVectorFeatureSelectionFilter.Parameterizer.SELECTED_ATTRIBUTES_ID.
public int getDimensionality()