V
- vector typepublic class NumberVectorRandomFeatureSelectionFilter<V extends NumberVector> extends AbstractVectorStreamConversionFilter<V,V>
Modifier and Type | Class and Description |
---|---|
static class |
NumberVectorRandomFeatureSelectionFilter.Parameterizer
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
protected int |
k
Holds the desired cardinality of the subset of attributes selected for
projection.
|
protected RandomFactory |
rnd
Holds a random generator.
|
protected long[] |
selectedAttributes
The selected attributes.
|
factory
source
Constructor and Description |
---|
NumberVectorRandomFeatureSelectionFilter(int dim,
RandomFactory rnd)
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.
|
protected SimpleTypeInformation<? super V> |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
(package private) void |
initializeRandomAttributes(SimpleTypeInformation<V> in)
Initialize random attributes.
|
initializeOutputType
data, getMeta, nextEvent
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init
protected long[] selectedAttributes
protected int k
protected RandomFactory rnd
public NumberVectorRandomFeatureSelectionFilter(int dim, RandomFactory rnd)
dim
- Dimensionalityrnd
- Random generatorprotected 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 restrictionvoid initializeRandomAttributes(SimpleTypeInformation<V> in)
convertedType(de.lmu.ifi.dbs.elki.data.type.SimpleTypeInformation<V>)
!in
- Type information.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.