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.
|
factory
source
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 . |
initializeOutputType
data, getMeta, nextEvent
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init
private long[] selectedAttributes
public NumberVectorFeatureSelectionFilter(long[] selectedAttributes)
selectedAttributes
- Selected attributesprotected V filterSingleObject(V obj)
AbstractStreamConversionFilter
filterSingleObject
in class AbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
obj
- Database object to normalizeprotected SimpleTypeInformation<? super V> getInputTypeRestriction()
AbstractStreamConversionFilter
getInputTypeRestriction
in class AbstractStreamConversionFilter<V extends NumberVector,V extends NumberVector>
protected SimpleTypeInformation<? super V> convertedType(SimpleTypeInformation<V> in)
AbstractStreamConversionFilter
convertedType
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.