Package elki.datasource.filter.cleaning
Class VectorDimensionalityFilter<V extends NumberVector>
- java.lang.Object
-
- elki.datasource.filter.AbstractStreamFilter
-
- elki.datasource.filter.cleaning.VectorDimensionalityFilter<V>
-
- Type Parameters:
V- Vector type
- All Implemented Interfaces:
BundleStreamSource,ObjectFilter,StreamFilter
public class VectorDimensionalityFilter<V extends NumberVector> extends AbstractStreamFilter
Filter to remove all vectors that do not have the desired dimensionality.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface elki.datasource.bundle.BundleStreamSource
BundleStreamSource.Event
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intcolumnThe column to filter.(package private) intdimDesired dimensionality.private static LoggingLOGClass logger.(package private) BundleMetametaThe filtered meta.-
Fields inherited from class elki.datasource.filter.AbstractStreamFilter
source
-
-
Constructor Summary
Constructors Constructor Description VectorDimensionalityFilter(int dim)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectdata(int rnum)Access a particular object and representation.BundleMetagetMeta()Get the current meta data.BundleStreamSource.EventnextEvent()Get the next eventprivate voidupdateMeta()Update metadata.-
Methods inherited from class elki.datasource.filter.AbstractStreamFilter
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init, toString
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger.
-
meta
BundleMeta meta
The filtered meta.
-
column
int column
The column to filter.
-
dim
int dim
Desired dimensionality.
-
-
Method Detail
-
getMeta
public BundleMeta getMeta()
Description copied from interface:BundleStreamSourceGet the current meta data.- Returns:
- Metadata
-
data
public java.lang.Object data(int rnum)
Description copied from interface:BundleStreamSourceAccess a particular object and representation.- Parameters:
rnum- Representation number- Returns:
- Contained data
-
nextEvent
public BundleStreamSource.Event nextEvent()
Description copied from interface:BundleStreamSourceGet the next event- Returns:
- Event type
-
updateMeta
private void updateMeta()
Update metadata.
-
-