Class NumberVectorFeatureSelectionFilter<V extends elki.data.NumberVector>

  • Type Parameters:
    V - Vector type
    All Implemented Interfaces:
    elki.datasource.bundle.BundleStreamSource, elki.datasource.filter.ObjectFilter, elki.datasource.filter.StreamFilter

    public class NumberVectorFeatureSelectionFilter<V extends elki.data.NumberVector>
    extends AbstractVectorStreamConversionFilter<V,​V>
    Parser to project the ParsingResult obtained by a suitable base parser onto a selected subset of attributes.
    Since:
    0.5.5
    Author:
    Arthur Zimek
    • Field Detail

      • selectedAttributes

        private long[] selectedAttributes
        Keeps the selection of the subspace to project onto.
    • Constructor Detail

      • NumberVectorFeatureSelectionFilter

        public NumberVectorFeatureSelectionFilter​(long[] selectedAttributes)
        Constructor.
        Parameters:
        selectedAttributes - Selected attributes
    • Method Detail

      • filterSingleObject

        protected V filterSingleObject​(V obj)
        Description copied from class: AbstractStreamConversionFilter
        Normalize a single instance. You can implement this as UnsupportedOperationException if you override both public "normalize" functions!
        Specified by:
        filterSingleObject in class AbstractStreamConversionFilter<V extends elki.data.NumberVector,​V extends elki.data.NumberVector>
        Parameters:
        obj - Database object to normalize
        Returns:
        Normalized database object
      • convertedType

        protected elki.data.type.SimpleTypeInformation<? super V> convertedType​(elki.data.type.SimpleTypeInformation<V> in)
        Description copied from class: AbstractStreamConversionFilter
        Get the output type from the input type after conversion.
        Specified by:
        convertedType in class AbstractStreamConversionFilter<V extends elki.data.NumberVector,​V extends elki.data.NumberVector>
        Parameters:
        in - input type restriction
        Returns:
        output type restriction
      • getDimensionality

        public int getDimensionality()
        Get the resulting dimensionality.
        Returns:
        dimensionality