de.lmu.ifi.dbs.elki.datasource.filter
Class DoubleVectorProjectionFilter

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.datasource.filter.AbstractConversionFilter<V,V>
      extended by de.lmu.ifi.dbs.elki.datasource.filter.AbstractFeatureSelectionFilter<DoubleVector>
          extended by de.lmu.ifi.dbs.elki.datasource.filter.DoubleVectorProjectionFilter
All Implemented Interfaces:
ObjectFilter

public class DoubleVectorProjectionFilter
extends AbstractFeatureSelectionFilter<DoubleVector>

Parser to project the ParsingResult obtained by a suitable base parser onto a selected subset of attributes.


Nested Class Summary
static class DoubleVectorProjectionFilter.Parameterizer
          Parameterization class.
 
Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.datasource.filter.AbstractFeatureSelectionFilter
SELECTED_ATTRIBUTES_ID
 
Constructor Summary
DoubleVectorProjectionFilter(BitSet selectedAttributes)
          Constructor.
 
Method Summary
protected  SimpleTypeInformation<? super DoubleVector> convertedType(SimpleTypeInformation<DoubleVector> in)
          Get the output type from the input type after conversion.
protected  DoubleVector filterSingleObject(DoubleVector obj)
          Normalize a single instance.
protected  SimpleTypeInformation<? super DoubleVector> getInputTypeRestriction()
          Get the input type restriction used for negotiating the data query.
 
Methods inherited from class de.lmu.ifi.dbs.elki.datasource.filter.AbstractFeatureSelectionFilter
getDimensionality, getSelectedAttributes, setSelectedAttributes
 
Methods inherited from class de.lmu.ifi.dbs.elki.datasource.filter.AbstractConversionFilter
filter, prepareComplete, prepareProcessInstance, prepareStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleVectorProjectionFilter

public DoubleVectorProjectionFilter(BitSet selectedAttributes)
Constructor.

Parameters:
selectedAttributes -
Method Detail

filterSingleObject

protected DoubleVector filterSingleObject(DoubleVector obj)
Description copied from class: AbstractConversionFilter
Normalize a single instance. You can implement this as UnsupportedOperationException if you override both public "normalize" functions!

Specified by:
filterSingleObject in class AbstractConversionFilter<DoubleVector,DoubleVector>
Parameters:
obj - Database object to normalize
Returns:
Normalized database object

getInputTypeRestriction

protected SimpleTypeInformation<? super DoubleVector> getInputTypeRestriction()
Description copied from class: AbstractConversionFilter
Get the input type restriction used for negotiating the data query.

Specified by:
getInputTypeRestriction in class AbstractConversionFilter<DoubleVector,DoubleVector>
Returns:
Type restriction

convertedType

protected SimpleTypeInformation<? super DoubleVector> convertedType(SimpleTypeInformation<DoubleVector> in)
Description copied from class: AbstractConversionFilter
Get the output type from the input type after conversion.

Specified by:
convertedType in class AbstractConversionFilter<DoubleVector,DoubleVector>
Parameters:
in - input type restriction
Returns:
output type restriction

Release 0.4.0 (2011-09-20_1324)