
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 long[] |
selectedAttributes
Keeps the selection of the subspace to project onto.
|
factorysource| Constructor and Description |
|---|
NumberVectorFeatureSelectionFilter(long[] 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.
|
long[] |
getSelectedAttributes()
Provides a BitSet with the bits set to true corresponding to the selected
attributes in
NumberVectorFeatureSelectionFilter.Parameterizer.SELECTED_ATTRIBUTES_ID. |
void |
setSelectedAttributes(long[] selectedAttributes)
Sets the bits set to true in the given BitSet as selected attributes in
NumberVectorFeatureSelectionFilter.Parameterizer.SELECTED_ATTRIBUTES_ID. |
initializeOutputTypedata, getMeta, nextEventasMultipleObjectsBundle, assignDBID, filter, hasDBIDs, initprivate long[] selectedAttributes
public NumberVectorFeatureSelectionFilter(long[] 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(long[] 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 long[] getSelectedAttributes()
NumberVectorFeatureSelectionFilter.Parameterizer.SELECTED_ATTRIBUTES_ID.public int getDimensionality()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.